How to get Empirical samples after inference?

qw is defined as
qw = Empirical(params=tf.Variable(tf.random_normal([n_samples,5])))
after infernece by ed.SGHMC, how to get all the samples of qw in an array?
I have tried, qw.sample, qw.value, but both don’t work.

1 Like

It seems qw.params.eval() work

2 Likes