Exporting mxnet compute graph to json?

#1

Is there a way to get the compute graph of a model as a json string without export()? I would like to avoid saving to file and loading it back.

#2

Sorry for short form I’m on mobile. Pass a mx.sym.Variable("data") through your graph and then call .tojson() on the resulting symbol

1 Like
#3

Thank you, this is exactly what I wanted.