Although such as Normal distribution, Bernoulli distribution and Beta distribution are already prepared by PyTorch, how can we create a self-made distribution?
In other words, I’d like to turn some functions which I made into a distribution instance and use .sample() method for example.
Does anyone know how to do this?