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

tf.contrib.bayesflow.stochastic_tensor.SampleAndReshapeValue.__init__(n=1, stop_gradient=False)

Sample n times and reshape the outer 2 axes so rank does not change.

Args:
  • n: A python integer or int32 tensor. The number of samples to take.
  • stop_gradient: If True, StochasticTensors' values are wrapped in stop_gradient, to avoid backpropagation through.
doc_TensorFlow
2016-10-14 12:44:21
Comments
Leave a Comment

Please login to continue.