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.