tf.contrib.distributions.Normal.__init__(mu, sigma, validate_args=False, allow_nan_stats=True, name='Normal')
Construct Normal distributions with mean and stddev mu
and sigma
.
The parameters mu
and sigma
must be shaped in a way that supports broadcasting (e.g. mu + sigma
is a valid operation).
Args:
-
mu
: Floating point tensor, the means of the distribution(s). -
sigma
: Floating point tensor, the stddevs of the distribution(s). sigma must contain only positive values. -
validate_args
:Boolean
, defaultFalse
. Whether to assert thatsigma > 0
. Ifvalidate_args
isFalse
, correct output is not guaranteed when input is invalid. -
allow_nan_stats
:Boolean
, defaultTrue
. IfFalse
, raise an exception if a statistic (e.g. mean/mode/etc...) is undefined for any batch member. IfTrue
, batch members with valid parameters leading to undefined statistics will return NaN for this statistic. -
name
: The name to give Ops created by the initializer.
Raises:
-
TypeError
: if mu and sigma are different dtypes.
Please login to continue.