contrib.bayesflow.stochastic_tensor.ObservedStochasticTensor
tf.contrib.bayesflow.stochastic_tensor.ObservedStochasticTensor
class tf.contrib.bayesflow.stochastic_tensor.ObservedStochasticTensor
Defined in tensorflow/contrib/bayesflow/python/ops/stochastic_tensor_impl.py
.
A StochasticTensor with an observed value.
Properties
distribution
dtype
graph
name
value_type
Methods
__init__
__init__( dist, value, name=None )
Construct an ObservedStochasticTensor
.
ObservedStochasticTensor
is backed by distribution dist
and uses the provided value instead of using the current value type to draw a value from the distribution. The provided value argument must be appropriately shaped to have come from the distribution.
Args:
-
dist
: an instance ofDistribution
. -
value
: a Tensor containing the observed value -
name
: a name for thisObservedStochasticTensor
and its ops.
Raises:
-
TypeError
: ifdist
is not an instance ofDistribution
. -
ValueError
: ifvalue
is not compatible with the distribution.
entropy
entropy(name='entropy')
loss
loss( final_loss, name=None )
mean
mean(name='mean')
value
value(name='value')
© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/bayesflow/stochastic_tensor/ObservedStochasticTensor