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 Dec 6, 2018
1 parent c4d129b commit 24e8ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/mxnet/contrib/onnx/onnx2mx/import_onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def _parse_array(self, tensor_proto):
np_array = to_array(tensor_proto).reshape(tuple(tensor_proto.dims))
else:
np_array = np.array([to_array(tensor_proto)])
return nd.array(np_array)
return nd.array(np_array)

def _parse_attr(self, attr_proto):
"""Convert a list of AttributeProto to a dict, with names as keys."""
Expand Down

0 comments on commit 24e8ac3

Please sign in to comment.