samskalicky opened a new issue #19647:
URL: https://github.com/apache/incubator-mxnet/issues/19647


   ## Description
   An exception is not thrown when `optimize_for` is called for an unknown 
backend. Instead, all that happens is a print message:
   
   ```
   >>> import mxnet as mx
   >>> sym, args, aux=mx.model.load_checkpoint('resnet-18',0)
   [23:54:04] src/nnvm/legacy_json_util.cc:209: Loading symbol saved by 
previous version v0.8.0. Attempting to upgrade...
   [23:54:04] src/nnvm/legacy_json_util.cc:217: Symbol successfully upgraded!
   >>> sym.optimize_for('test')
   [23:54:15] src/c_api/c_api_symbolic.cc:1547: Error optimizing for backend 
'test' cannot be found
   <Symbol softmax>
   ```
   
   Notice that `optimize_for` actually returns a copy of the input symbol.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to