Skip to content

Added tests for JIT Elbo classes in test_valid_models #2799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

jamestwebber
Copy link
Contributor

I was attempting to fix #2798 by simply adding a minus sign to the JitTraceGraph_ELBO class and discovered some issues while testing. As I cannot figure out what is going on, @fritzo suggested I open a PR with failing tests for someone else to look at.

So, for every use of an ELBO in test_valid_models, I added another test that used the Jit version of that ELBO if there was one. For a few tests this meant introducing parametrization (the TraceMeanField_ELBO tests lived on their own, and now they have a parameter for the normal and Jit class). Also, in cases where the test used if Elbo is TraceEnum_ELBO I changed it to if issubclass(Elbo, TraceEnum_ELBO) so that the Jit version is included.

This adds more than 200 failing tests (and some passing ones as well). 😬 I suspect that many of them are simply because the test model is not compatible with JITting, but it also uncovers a number where the outputs simply don't match the expected value from JitTraceGraph_ELBO and JitTraceMeanField_ELBO.

James Webber added 3 commits April 8, 2021 14:56
added hundreds of failing tests (and a few passing ones)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] Sign error in JitTraceGraph_ELBO
2 participants