everwind opened a new issue #7551: How to get the symbol of gluon's RNN model by hybridizing URL: https://github.com/apache/incubator-mxnet/issues/7551 I follow the instruction of http://gluon.mxnet.io/P14-C05-hybridize.html#, but fail. the error message is: File "/usr/lib/python2.7/site-packages/mxnet-0.11.0-py2.7.egg/mxnet/gluon/block.py", line 312, in __setattr__ super(HybridBlock, self).__setattr__(name, value) File "/usr/lib/python2.7/site-packages/mxnet-0.11.0-py2.7.egg/mxnet/gluon/block.py", line 177, in __setattr__ self.register_child(value) File "/usr/lib/python2.7/site-packages/mxnet-0.11.0-py2.7.egg/mxnet/gluon/block.py", line 327, in register_child str(block), str(type(block)))) ValueError: Children of HybridBlock must also be HybridBlock, but RNN(100 -> 100, TNC, num_layers=2, dropout=0.2) has type <class 'mxnet.gluon.rnn.rnn_layer.RNN'>. If you are using Sequential, please try HybridSequential instead. I can not find the HybridSequential RNN in source code of gluon ---------------------------------------------------------------- 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
