Row-wise comparisons between 2D-tensors

yes, my datasets contain duplicate…this is because I simulate data and don’t have real datasets…I have to find a way to have non identical value in my datasets…thanks very much for your prompt response.