diffsort icon indicating copy to clipboard operation
diffsort copied to clipboard

Is it possible to use diffsort to rank, keeping differentiability?

Open davips opened this issue 1 year ago • 3 comments

Related: Do you know any work/implementation about soft indexing similar to numpy/scipy argsort and partition?

davips avatar Sep 28 '23 18:09 davips

Yes, diffsort is actually a diffargsort or more concretely the module returns a tuple of sorted_vectors, permutation_matrices where sorted_vectors is the output of the sorting operation and permutation_matrices is the soft version of argsort / rank.

Felix-Petersen avatar Oct 27 '23 03:10 Felix-Petersen

Hi

How to use the DiffsortNet for a batch of input vectors of size bxN, where b is the batch size and N is the vector-length?

arunkumar-singh avatar Apr 16 '24 12:04 arunkumar-singh

Hi

How to use the DiffsortNet for a batch of input vectors of size bxN, where b is the batch size and N is the vector-length?

Never mind, I got it

arunkumar-singh avatar Apr 16 '24 12:04 arunkumar-singh