The new pip version of sbi (v0.22) includes an annoying change which breaks some of our examples.
Now, sbi.utils.BoxUniform checks that the low and high arguments are torch Tensors, instead of previously being amenable to tuples. Everywhere in our examples and tests that uses this class now breaks...
Currently, I have a hack in #106 that just forces us to install sbi<=0.21. However, a more permanent solution would be either to wrap BoxUniform or to catch this and convert any tuple inputs to torch tensors.
The new pip version of sbi (v0.22) includes an annoying change which breaks some of our examples.
Now,
sbi.utils.BoxUniform
checks that thelow
andhigh
arguments are torch Tensors, instead of previously being amenable to tuples. Everywhere in our examples and tests that uses this class now breaks...Currently, I have a hack in #106 that just forces us to install sbi<=0.21. However, a more permanent solution would be either to wrap BoxUniform or to catch this and convert any tuple inputs to torch tensors.