tf.contrib.bayesflow.stochastic_tensor.ObservedStochasticTensor.__init__(dist_cls, value, name=None, **dist_args)
Construct an ObservedStochasticTensor
.
ObservedStochasticTensor
will instantiate a distribution from dist_cls
and dist_args
but use the provided value instead of sampling from the distribution. The provided value argument must be appropriately shaped to have come from the constructed distribution.
Args:
-
dist_cls
: aDistribution
class. -
value
: a Tensor containing the observed value -
name
: a name for thisObservedStochasticTensor
and its ops. -
**dist_args
: keyword arguments to be passed through todist_cls
on construction.
Raises:
-
TypeError
: ifdist_cls
is not aDistribution
. -
ValueError
: ifvalue
is not compatible with the distribution.
Please login to continue.