From 24e8ac374213d4bf46339ea5d7b21fa395d01b13 Mon Sep 17 00:00:00 2001 From: Roshani Nagmote Date: Thu, 6 Dec 2018 11:58:35 -0800 Subject: [PATCH] fix --- python/mxnet/contrib/onnx/onnx2mx/import_onnx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mxnet/contrib/onnx/onnx2mx/import_onnx.py b/python/mxnet/contrib/onnx/onnx2mx/import_onnx.py index cf00814f37db..665205806d3f 100644 --- a/python/mxnet/contrib/onnx/onnx2mx/import_onnx.py +++ b/python/mxnet/contrib/onnx/onnx2mx/import_onnx.py @@ -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."""