Is it possible to eliminate duplication in tensor like set() in python function?
I’d like to eliminate duplication in multi dimensional tensor as below.
[[1,2],
 [5,6],
 [1,2]]

-> [[1,2],
    [5,6]]

Since I want to use this output for loss computation, I don’t want to use .data.numpy() function.