Open 55Santoz opened 1 year ago
hi 55Santoz try to add this one I run successfully with this one.
@tf.function(experimental_compile=True) def run_smc(): ( n_stage, final_state, final_kernel_results ) = sample_sequential_monte_carlo_chain( prior_log_prob_fn, likelihood_log_prob_fn, init_state, make_kernel_fn=_make_transform_hmc_kernel_fn, tuning_fn=simple_heuristic_tuning_hmc, max_num_steps=50 ) return n_stage, final_state, final_kernel_results
n_stage, final_state, final_kernel_results = run_smc()
Hello, I ran SMC Demo and when I ran "runsmc()", the error below occured
""" 94 95 def _tempered_target_log_prob(args): --> 96 priorlogprob = tf.identity(prior_log_prob_fn(args), 97 name='prior_log_prob') 98 loglike = tf.identity(likelihood_log_prob_fn(*args),
TypeError: in user code:
"""
Any ideas about the error and how to fix it?