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 of Distribution.
  • value: a Tensor containing the observed value
  • name: a name for this ObservedStochasticTensor and its ops.

Raises:

  • TypeError: if dist is not an instance of Distribution.
  • ValueError: if value 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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部