torch.exp(input):代码示例:import torchimport torch.nn as nnimport matha=torch.tensor([0,math.log(2)])print(torch.exp(a))输出:tensor([1., 2.])
確定! 回上一頁