My model works fine before, but now I want to use the logarithm of the origin output to calculate the loss. However, the loss becomes inf . I have printed the value of output.abs_().log_() and y.log_() , the are all normal value (no inf), and my loss function is nn. L1Loss()  but the loss value is Inf .
So have I missed something or done something wrong? I only want to calculate the L1Loss using the logarithm of the original output.