I have an Tensor of shape tf.shape(input)=(Batch_Size,Channels,N,N) my goal is it to calculate and output which contains all diagonal elements along axis 2&
tf.shape(input)=(Batch_Size,Channels,N,N)