contrib.bayesflow.variational_inference.register_prior

tf.contrib.bayesflow.variational_inference.register_prior

tf.contrib.bayesflow.variational_inference.register_prior

register_prior(
    variational,
    prior
)

Defined in tensorflow/contrib/bayesflow/python/ops/variational_inference_impl.py.

See the guide: BayesFlow Variational Inference (contrib) > Ops

Associate a variational StochasticTensor with a Distribution prior.

This is a helper function used in conjunction with elbo that allows users to specify the mapping between variational distributions and their priors without having to pass in variational_with_prior explicitly.

Args:

  • variational: StochasticTensor q(Z). Approximating distribution.
  • prior: Distribution p(Z). Prior distribution.

Returns:

None

Raises:

  • ValueError: if variational is not a StochasticTensor or prior is not a Distribution.

© 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/variational_inference/register_prior

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部