I've run unit tests. On my first attempt there was one failure (see below) which didn't seem relevant to this change, and I couldn't reproduce this on rerunning the tests (i.e. on trying the unit tests again they all passed)
FAIL: test_forward_inverse_are_consistent (transforms.nonlinearities_test.TestPiecewiseCDF) (transform=PiecewiseLinearCDF())
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/dennis/git/nflows/tests/transforms/nonlinearities_test.py", line 63, in test_forward_inverse_are_consistent
self.assert_forward_inverse_are_consistent(transform, inputs)
File "/home/dennis/git/nflows/tests/transforms/transform_test.py", line 25, in assert_forward_inverse_are_consistent
self.assertEqual(logabsdet, torch.zeros(inputs.shape[:1]))
AssertionError: The tensors are different!
----------------------------------------------------------------------
I've run unit tests. On my first attempt there was one failure (see below) which didn't seem relevant to this change, and I couldn't reproduce this on rerunning the tests (i.e. on trying the unit tests again they all passed)