Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

How to get the symbol of gluon's RNN model by hybridizing #7551

Description

@everwind

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions