Conversation
… stored, to keep it
Codecov ReportAttention: Patch coverage is
❌ Your patch status has failed because the patch coverage (35.32%) is below the target coverage (50.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #1527 +/- ##
===========================================
- Coverage 89.45% 78.94% -10.52%
===========================================
Files 128 133 +5
Lines 10170 10368 +198
===========================================
- Hits 9098 8185 -913
- Misses 1072 2183 +1111
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Regarding type checking failing, it says that prior are of type I'm not sure which solution should we give to this. They are defined as |
|
Thanks @StarostinV, super clear!. Now I've separated it into another test, and included also all other sbi/tests/inference_on_device_test.py Lines 703 to 724 in 33926de Test are passing, thing is that they are marked as |
michaeldeistler
left a comment
There was a problem hiding this comment.
Amazing! Minor typo below, but otherwise good to go from my side!
janfb
left a comment
There was a problem hiding this comment.
Wow, thanks a lot for all the GPU fixes! 🎉
I found some typos and possible improvements for the typing, all minor things. I tried to put in concrete suggestions which you could just accept and commit in a batch.
When testing locally, I got three failing GPU tests, see comment below.
|
About the three failing tests:
And there seems to another problem I could not figure out until now: during
|
Co-authored-by: Jan <janfb@users.noreply.github.com>
|
@jorobledo I pushed the fixes to https://github.com/sbi-dev/sbi/tree/posterior_device_fixes in separate commits. feel free to cherry-pick from that branch or just them over. |
|
Way to go! Looking good, Anything left uncovered? Didn't read the comment to grant access! Sorry about that. |
|
Getting |
GPU tests are all passing for me as well 🎉 |
|
Happy to fix the last CI test that keeps failing @jorobledo. |
janfb
left a comment
There was a problem hiding this comment.
Thanks again @jorobledo ! It's amazing to have this feature 🎉
Looks all good now and alles tests are passing, so let's ![]()
This PR is related to issue #1368. It adds
tomethod to all potentials and posteriors, as well as the corresponding tests.They were tested in
cpu,gpuat our cluster, and onmpson macs. All tests pass oncudadevices.Three tests fail on
mpsdue to the use oftorch.DistributionslikeBinomialorGammaforMultipleIndependent, which give a torchNotImplementedErroron MPS device YET. I can imagine that these will soon pass with newer torch versions.The
posterior.to(device)method is inplace.