sbi-benchmark / sbibm

Simulation-based inference benchmark
https://sbi-benchmark.github.io
MIT License
88 stars 34 forks source link

Adapt usage of log_abs_det_jacobian for torch>=1.8 #27

Closed janfb closed 2 years ago

janfb commented 2 years ago

The dependence on torch 1.8 makes sense because the current sbi version, which we want to use, depends on it.

With this change we get rid of the helper function get_log_abs_det_jacobian that was distinguishing between the behavior before and after torch 1.8 and was doing the summation explicitly.

Details:

See also #15

janfb commented 2 years ago

we could add the fixed dependency on sbi in this branch as well, once the new sbi version is released.

jan-matthis commented 2 years ago

Great, cheers!