No, the requires_grad
attribute is set for the tensor itself and you might need to create different subtensors and recreate the final tensor as seen in this example.
No, the requires_grad
attribute is set for the tensor itself and you might need to create different subtensors and recreate the final tensor as seen in this example.