Hello Peter!



 ptrblck:

Hi Frank,
this work flow would detach the output from the model and all following operation put in a "no_grad block".
preds would still hold to the computation graph. The Variable wrapping preds.data is detached and Autograd does not track any operations on it.


Thank you for your clarifying reply.


Is this the use case?


Yes, I believe that it is.
I will follow up when I’ve I tried this out (and if and when I think I
understand it …).
Best.
K. Frank