Can pytorch find the intersection of two vectors?
Similar to the Matlab “intersection” function:
https://www.mathworks.com/help/matlab/ref/double.intersect.html;jsessionid=0f4b1f0e0ff110c50bb8a0076587 55
What about other set operations? e.g., union, setdiff?
Thanks