This PR fixes issue #23: unconstrained spline transforms crashing when they encounter input that is entirely outside the [-tail_bound, tail_bound] region. It does this by adding a single line of the form if torch.any(inside_interval_mask): to all unconstrained_*_spline() functions.
It also adds corresponding unit tests in tests/transforms/splines/*_test.py.
This PR fixes issue #23: unconstrained spline transforms crashing when they encounter input that is entirely outside the
[-tail_bound, tail_bound]
region. It does this by adding a single line of the formif torch.any(inside_interval_mask):
to allunconstrained_*_spline()
functions.It also adds corresponding unit tests in
tests/transforms/splines/*_test.py
.