cvae icon indicating copy to clipboard operation
cvae copied to clipboard

Error:computing log_prob at site 'y'

Open ly15681910119 opened this issue 2 years ago • 5 comments

When the program trains the CVAE, the program reports an error:

                                                                         computing log_prob at site 'y'

The main problem is this line of code:

                                                              loss = svi.step(inputs, outputs) / inputs.size(0)

ly15681910119 avatar Oct 21 '22 03:10 ly15681910119

When the program trains the CVAE, the program reports an error:

                                                                         computing log_prob at site 'y'

The main problem is this line of code:

                                                              loss = svi.step(inputs, outputs) / inputs.size(0)

me too! A same problems with you!

xlnn avatar Mar 16 '23 12:03 xlnn

Hey guys... this smells like a compatibility issue. Pyro is in active development. When I created this example as a contribution to them, I used Pyro's 1.4.x; Pyro is now over 1.8. Let me investigate and come back to you.. Cheers!

ucals avatar Mar 16 '23 16:03 ucals

Hey guys... this smells like a compatibility issue. Pyro is in active development. When I created this example as a contribution to them, I used Pyro's 1.4.x; Pyro is now over 1.8. Let me investigate and come back to you.. Cheers!

Thank you!

xlnn avatar Mar 17 '23 00:03 xlnn

I have the same problem, is there a solution now?

shoyua avatar Jun 16 '23 09:06 shoyua

I have the same problem, is there a solution now?

set validate_args=False in pyro.sample('y', dist.Bernoulli(mask_loc, validate_args=False).to_event(1), obs=mask_ys). It seems work.

shoyua avatar Jun 16 '23 09:06 shoyua