摘要: softmax函数,可以将算出来的预测值转换成0-1之间的概率形式 导数的形式 import torch import torch.nn.functional as F x=torch.tensor([3.3,2.2,1.0]) x.requires_grad_() y=F.softmax(x,di 阅读全文
posted @ 2021-01-24 16:42 克莱比-Kirby 阅读(2900) 评论(0) 推荐(0)