You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/01/23 06:41:54 UTC

[GitHub] kmul00 opened a new issue #9525: How to print loaded models (in mx.module format) ?

kmul00 opened a new issue #9525: How to print loaded models (in mx.module format) ?
URL: https://github.com/apache/incubator-mxnet/issues/9525
 
 
   Hi,
   
   This may seem to be a very basic question, and creating an issue for it may not be the right approach to get it solved. If that's the case, it would be of immense help if someone can direct me to the proper channel to put across my query. :)
   
   I already have a trained model, which I load using the following command and use for prediction purpose:
   
   ```python
   model = mx.module.Module.load(prefix = self.model_dir, epoch = self.model_epoch, context = self.ctx)
   data_shape = (1, 3, 640, 480)
   model.bind(data_shapes = [('data', data_shape)], for_training = False)
   ```
   
   Now I want to print the model. I understand that *models* in MxNet could be printed using `mx.viz.plot_network(model)` but that requires the model to be in symbolic format (i.e. `mxnet.symbol`).
   
   If I am already loading it in `mxnet.module`, what is the correct way of printing it?
   
   Any help would be highly appreciated. Thanks in advance.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services