in order to interface with older code, which creates a computation graph as mxnet.symbol and binds to an executor the old way, I’d like to get the mxnet.symbol expression for a HybridBlock, together with a dict for all the params the graph depends on, ideally with the shape information.
In short, I need all the info I can stick into bind(…) for an executor.
Even better if I could get the bound executor directly out of the HybridBlock, but that may be too. much to ask for. I still would like to have some freedom of which gradients are computed.
Can somebody point me to a complete example or doc where this is done?
BTW: We noted for this particular case (a fairly complex graph) also a substantial overhead of going with Gluon, autograd, and then hybridize, compared to the old code creating about the same graph. Order of 4x slower.