Building user defined pyro distribution

Do folks have examples of building their own distribution class to be used in a pyro inference calculation? I’m struggling to find a well documented example.

Cheers

i suggest you browse some of the distributions in pyro/distributions, e.g. the von mises distribution