替换代码2】和 torch.nn.functional.softmax 给出了相同的输出,一个是类(pytorch模块),另一个是函数。 替换代码4】在应用softmax后应用log。 NLLLoss将对数概率(log( ...
確定! 回上一頁