首页 > 其他分享 >pifpaf的scale损失

pifpaf的scale损失

时间:2023-03-07 21:58:38浏览次数:24  
标签:scale nn torch pifpaf 损失 Softplus import

torch.nn.Softplus默认公式为log(1+exp(x))

import torch import numpy as np m=torch.nn.Softplus() print(m(torch.Tensor([4])))

 

 对x作软relu处理然后跟target进行l1损失处理。

 

标签:scale,nn,torch,pifpaf,损失,Softplus,import
From: https://www.cnblogs.com/hahaah/p/17189815.html

相关文章