Hi everyone!
I need to define a hash function (mapping), with uniform distribution on its output.
Signature: Zd -> X, where X = {1,2,3, … n} (n = fixed integer).
Thus, a function that takes a d dimensional tensor as input and returns an integer value corresponding to it.
The condition is that the output of the Hash function should have a uniform density over the range of X. Is there an inbuilt PyTorch function that can help here? Or any other way to implement this?
Thanks in advance.