We want to profile backward time for in place operations, e g:
a *= b
For this we need to detach a, and set requires grad to True.
However then it’s a leaf variable modified inplace which autograd doesn’t allow.
Is there any workaround?