This PR fixes the return type of the multinomial distribution to int64. This is justified as the underlying pytorch function always returns a long (as described in #54). Furthermore, an additional optional argument is added that allows a generator to be passed to the function.
This PR fixes the return type of the multinomial distribution to
int64
. This is justified as the underlying pytorch function always returns a long (as described in #54). Furthermore, an additional optional argument is added that allows a generator to be passed to the function.