I have symbol file and parameters file saved using .export method.
So now how can I reload that same model??
According to documentation I can do so using gluon.SymbolBlock.imports
, but it’s throwing error as SymbolBlock has no attribute 'imports'
.
What version of MXNet are you using and how did you build/install mxnet.
Seems to work fine for me.
>>> import mxnet
>>> mxnet.__version__
'1.4.1'
>>> 'imports' in dir(mxnet.gluon.SymbolBlock)
True
Actually I had python 3.7 where the latest mxnet version is 1.2… switching to python 3.6 solved the issue with mxnet 1.5 (or 1.4)