masa-su / pixyz

A library for developing deep generative models in a more concise, intuitive and extendable way
https://pixyz.io
MIT License
487 stars 41 forks source link

[WIP] Add bypass_from option to the sample method #164

Closed ktaaaki closed 3 years ago

ktaaaki commented 3 years ago

Waiting for merge #162

Added an option to return a value without stochastic calculation in a sample method of DistributionBase.

Example: Replace sample from the normal distribution with the mean of it.

The returned value is limited to one of the distribution's parameters.