A question about torch.log

test
Why does this happen?

Hi,

This happens because log is only defined for strictly positive inputs. And so we return -inf for all values <= 0 as it is the limit at 0.

1 Like