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
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