In mxnet 1.4 using the Python API, suppose I do
import mxnet as mx
tmp = mx.sym.var('a')
print(tmp) # <Symbol a>
tmp = tmp + tmp
print(tmp) # <Symbol _plus0>
tmp = mx.sym.var('b')
tmp = tmp + tmp
print(tmp) # <Symbol _plus1>
I assume, <Symbol _plus0>
is still present in the graph somewhere. How can I list all symbols which currently live in my graph?
I would like to do something like mx.sym.list_all_symbols()
.
I have checked this tutorial, the docs, as well as the source code but couldn't find anything.