In unbalanced OT with small reach, f can become inf in some cases which should not matter because it is multiplied by 0 (alpha is 0 in the cases where f is inf in my experience). But without this fix, we multiply 0.0 * inf which is NaN in floating point numbers instead of 0.
In unbalanced OT with small
reach
,f
can becomeinf
in some cases which should not matter because it is multiplied by 0 (alpha
is 0 in the cases wheref
is inf in my experience). But without this fix, we multiply0.0 * inf
which is NaN in floating point numbers instead of 0.