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/12 07:00:08 UTC
[GitHub] chowkamlee81 commented on issue #9392: Official version of MobileNet pretrained model and .json file
chowkamlee81 commented on issue #9392: Official version of MobileNet pretrained model and .json file
URL: https://github.com/apache/incubator-mxnet/issues/9392#issuecomment-357158672
Hi szha, model has been downloaded . But while exporting to .json and .param files throws an error ""Please first call block.hybridize() and then run forward with "
"this block at least once before calling export."
Kindly help to resolve the issue as it thrown an exception in mxnet/gluon/block.py below code
def export(self, path, epoch=0):
"""Export HybridBlock to json format that can be loaded by `mxnet.mod.Module`
or the C++ interface.
.. note:: When there are only one input, it will have name `data`. When there
Are more than one inputs, they will be named as `data0`, `data1`, etc.
Parameters
----------
path : str
Path to save model. Two files `path-symbol.json` and `path-xxxx.params`
will be created, where xxxx is the 4 digits epoch number.
epoch : int
Epoch number of saved model.
"""
if not self._cached_graph:
raise RuntimeError(
"Please first call block.hybridize() and then run forward with "
"this block at least once before calling export.")
----------------------------------------------------------------
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