Best way of getting one part of a Tensor preserving the gradient flow

Hi! What is the best way of getting the half of the tensor, or getting a vector out of a matrix and preserve the gradient flow? :smiley:

And also, where in the docs can I check if some operation preserves (or not) the gradient flow?

Thank you

Hello,

I think there is not a convenient way to make half or part of the whole matrix requires_grad=True or False. May this thread can help you.