Suppose I have a tensor of [10, 2, 2]. I want to pick the diag vector of dim 1 and 2, i.e., make the tensor to [10, 2]. Is there an easy way to do so? The .diag method doesn’t seem to work unless I iterate the 10 instances.