You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2021/09/13 13:41:27 UTC

[GitHub] [incubator-mxnet] chansonzhang opened a new issue #20577: AttributeError: 'SymbolBlock' object has no attribute '_cached_op_args'

chansonzhang opened a new issue #20577:
URL: https://github.com/apache/incubator-mxnet/issues/20577


   ### Discussed in https://github.com/apache/incubator-mxnet/discussions/20575
   
   <div type='discussions-op-text'>
   
   <sup>Originally posted by **chansonzhang** September 12, 2021</sup>
   When I run the code in the guide [https://nlp.gluon.ai/v0.9.x/examples/sentence_embedding/bert.html#Deployment](https://nlp.gluon.ai/v0.9.x/examples/sentence_embedding/bert.html#Deployment), it reported `AttributeError: 'SymbolBlock' object has no attribute '_cached_op_args'` in code line `net.export(prefix, epoch=0)`
   
   ---------------------------------------------------------------------------
   AttributeError                            Traceback (most recent call last)
   <ipython-input-34-1fbc24d27746> in <module>()
        26 # will remove until mxnet 1.7 release.
        27 try:
   ---> 28     eval_metric = deployment(quantized_net, prefix, dev_dataloader)
        29 except NameError:
        30     nlp.utils.version.check_version('1.7.0', warning_only=True, library=mx)
   
   1 frames
   /usr/local/lib/python3.7/dist-packages/mxnet/gluon/block.py in export(self, path, epoch, remove_amp_cast)
      1246         aux_names = set(sym.list_auxiliary_states())
      1247         arg_dict = {}
   -> 1248         for is_arg, param in self._cached_op_args:
      1249             if not is_arg:
      1250                 name = param.name
   
   AttributeError: 'SymbolBlock' object has no attribute '_cached_op_args'</div>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org


[GitHub] [incubator-mxnet] github-actions[bot] commented on issue #20577: AttributeError: 'SymbolBlock' object has no attribute '_cached_op_args'

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #20577:
URL: https://github.com/apache/incubator-mxnet/issues/20577#issuecomment-918203815


   Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue.
   Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly.
   If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on [contributing to MXNet](https://mxnet.apache.org/community/contribute) and our [development guides wiki](https://cwiki.apache.org/confluence/display/MXNET/Developments).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org