@ZEHANG_WENG Did you end up finding a solution to this?
I have a similar problem of the library “torchsort” only accepting a 2D input, but I have 3D [B, H. W] batches.
I would somehow like to parallelize multiple batch operations.