torch.autograd.FunctionCtx.mark_dirty
FunctionCtx.mark_dirty(...tensors: Tensor[]): voidMarks given tensors as modified in an in-place operation.
This should be called at most once, in either forward() or setup_context(), and all arguments should be inputs.
Parameters
tensorsTensor[]- Tensors that were modified in-place