Probabilistic-Programming-and-Bayesian-Methods-for-Hackers icon indicating copy to clipboard operation
Probabilistic-Programming-and-Bayesian-Methods-for-Hackers copied to clipboard

Ch1 TFP: Specify the posterior sampler

Open Bazman76 opened this issue 5 years ago • 0 comments

Hi there,

This section:

], kernel_results = graph_sample_chain(
    num_results=num_results,
    num_burnin_steps=num_burnin_steps,
    current_state=initial_chain_state,
    kernel = kernel)

Is giving the following error:

TypeError: Tensor is unhashable. Instead, use tensor.ref() as the key.

Bazman76 avatar Jun 07 '20 20:06 Bazman76