- 博客(2)
- 收藏
- 关注
原创 关于交叉熵
import torchimport torch.nn as nnimport math entroy=nn.CrossEntropyLoss()input=torch.Tensor([[-0.7715, -0.6205,-0.2562]])target = torch.tensor([0])output = entroy(input, target)print(output)
2020-03-16 17:06:44 74
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人