cjolivier01 commented on a change in pull request #10472: [MXNET-106] 
[ONNX_MXNet] Change parameter names in imported model
URL: https://github.com/apache/incubator-mxnet/pull/10472#discussion_r180491148
 
 

 ##########
 File path: example/onnx/super_resolution.py
 ##########
 @@ -56,8 +56,8 @@ def get_test_image():
 def perform_inference(sym, arg_params, aux_params, input_img, img_cb, img_cr):
     """Perform inference on image using mxnet"""
     # create module
-    mod = mx.mod.Module(symbol=sym, data_names=['input_0'], label_names=None)
-    mod.bind(for_training=False, data_shapes=[('input_0', input_img.shape)])
+    mod = mx.mod.Module(symbol=sym, data_names=['1'], label_names=None)
 
 Review comment:
   Why '1'?  Not very descriptive...

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to