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: aDistributionclass. -
value: a Tensor containing the observed value -
name: a name for thisObservedStochasticTensorand its ops. -
**dist_args: keyword arguments to be passed through todist_clson construction.
Raises:
-
TypeError: ifdist_clsis not aDistribution. -
ValueError: ifvalueis not compatible with the distribution.
Please login to continue.