Closed VoVAllen closed 7 years ago
dump to where?
@piiswrong
Thank you for your reply. Dump to some variable. Actually what I want to do is to have the gradient of intermediate layer output (also the intermediate layer output), just like the data gradient as saliency map. Since the executor can have the grad of arg, therefore I want to take advantage of this feature.
You can group the intermediate layer output with the final output. You can also bind the gradient of intermediate layer's output
great idea on group intermediate layer output with the final output! (I guess BlockGrad symbol is also needed here.) But I don't understand what do you mean by bind the gradient? It would be very helpful for me if you could provide a simple code example. Thank you.
This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!
Just want to dump some inner result in the computation graph
For example,
In this example, I want to dump the image after conv layer. Because mxnet will only store the information about args, therefore I tried to manually add an argument to make the result stored by mxnet.
Any idea on how shall I get this identity mapping symbol?