Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Roshrini committed Feb 18, 2019
1 parent e6e74ee commit 4b61331
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/mxnet/contrib/onnx/onnx2mx/_translation_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def get_input_shape(sym, proto_obj):

return result.shape

def broadcast_arithmetic_helper(attrs, inputs, proto_obj, op_name):
def broadcast_arithmetic_helper(attrs, inputs, proto_obj, current_op_name):
"""Helper function for broadcast arithmetic ops."""
new_attr = {}
op_names = ['batchnorm, convolution, deconvolution']
Expand All @@ -256,8 +256,8 @@ def broadcast_arithmetic_helper(attrs, inputs, proto_obj, op_name):
# if input is bias which comes after conv, deconv, batchnorm operators
# then only reshape bias term
if inputs[0].name.startswith(op_name):
op_value = _fix_broadcast(op_name, inputs, broadcast_axis, proto_obj)
op_value = _fix_broadcast(current_op_name, inputs, broadcast_axis, proto_obj)
return op_value, new_attr, inputs
else:
return op_name, attrs, inputs
return op_name, new_attr, inputs
return current_op_name, attrs, inputs
return current_op_name, new_attr, inputs

0 comments on commit 4b61331

Please sign in to comment.