I have a prior which is multivariate gaussian and a tensor zs.
self.prior.log_prob(zs[-1])
the above line of code is throwing the folowing error:
AttributeError: 'tuple' object has no attribute 'log_prob'
Please help
I have a prior which is multivariate gaussian and a tensor zs.
self.prior.log_prob(zs[-1])
the above line of code is throwing the folowing error:
AttributeError: 'tuple' object has no attribute 'log_prob'
Please help
Based on the error message self.prior
seems to be a tuple
, so you would have to unwarp or index it to access the distribution, which defines the log_prob
method.