The argument to the sampler
The model to be optimized
The sampler.
The number of steps to sample for.
Put objective value and gradient into the accumulators.
Put objective value and gradient into the accumulators. Either argument can be null if they don't need to be computed.
Accumulator to hold value
Accumulator to hold gradient
The argument to the sampler
The number of steps to sample for.
The sampler.
A training example for using contrastive divergence.
The type of sampler context