RuntimeError: a view of a leaf Variable that requires grad is being used in an in-place operation.
This has to do with the interaction of requires_grad in system parameters and to_device. Probably, a parameter is re-instantiated with requires_grad true after calling set_kernel_radius
This has to do with the interaction of
requires_grad
in system parameters andto_device
. Probably, a parameter is re-instantiated withrequires_grad
true after callingset_kernel_radius