Is there anyway to get the first element of a tensor as a scalar

Keep in mind that doing this will not work with the autograd and no gradient will be backpropagated through this number.

1 Like