tf.contrib.bayesflow.stochastic_tensor.ObservedStochasticTensor.__init__()

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: a Distribution class.
  • value: a Tensor containing the observed value
  • name: a name for this ObservedStochasticTensor and its ops.
  • **dist_args: keyword arguments to be passed through to dist_cls on construction.
Raises:
  • TypeError: if dist_cls is not a Distribution.
  • ValueError: if value is not compatible with the distribution.
doc_TensorFlow
2016-10-14 12:44:14
Comments
Leave a Comment

Please login to continue.