vandanavk commented on issue #12920: ONNX export: Instance normalization, Shape
URL: https://github.com/apache/incubator-mxnet/pull/12920#issuecomment-435485847
 
 
   Since sym.bind doesn't have the option to allow_missing, this fails for 
certain models - as faced by Roshani. 
   
   In forward_pass(), the output label is removed from data_names. 
mod.set_params doesn't complain about this because of allow_missing=True, but 
in sym.bind allow_missing is always False, and hence when the output_label 
appears in sym.list_arguments() but not in the args passed, it throws an error.
   
   one solution is to bring back the check in `export_onnx.py` to do the 
following:
   ```
   if batch size same
         mod.bind 
   else
         sym.bind
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to