barry-jin commented on a change in pull request #20262:
URL: https://github.com/apache/incubator-mxnet/pull/20262#discussion_r649329039
##########
File path: python/mxnet/gluon/block.py
##########
@@ -1088,6 +1088,7 @@ def _get_graph(self, *args):
out = super().__call__(*args)
flatten_out, self._out_format = _flatten(out, "output")
symbol_outputs = dc.get_symbol(flatten_out,
sym_cls=type(symbol_inputs[0]))
+ dc.clear(flatten_out)
Review comment:
The `dc.clear` here is called on the ndarray outputs, which contain the
node_entry(`deferredcompute_entry_`) with DCInfo. The copied symbol doesn't
contain DCInfo, so I try to clear DCInfo from ndarray outputs.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]