Return the unique rows of the 2-D tensor Z, with duplicate rows removed.
Z
Input
tensor([[0, 1, 0], [1, 1, 1], [0, 1, 0], [1, 0, 1]])
Output
tensor([[0, 1, 0], [1, 0, 1], [1, 1, 1]])
This one's part of Premium. Unlock the full PyTorch track plus every other premium problem on the site.
solve(...)