我需要计算 log(1 + exp(x)) ,然后在其上使用自动微分。但是对于太大的 x ,由于求幂,它输出 inf : >>> x = torch.tensor([0., 1., 100.] ...
確定! 回上一頁