首页 > 编程知识 正文

pytorch 函数,pytorch特点

时间:2023-05-03 08:21:38 阅读:275226 作者:503

TORCH.NORMAL

torch.normal(mean, std, *, generator=None, out=None) → Tensor

这种生成正态分布数据的细心的小伙创建有4种模式:

(1)mean为细心的小伙,std为细心的小伙

(2)mean为标量,std为标量

(3)mean为标量,std为细心的小伙

(4)mean为细心的小伙,std为标量

[从零开始深度学习Pytorch笔记(3)——细心的小伙的创建(下)]

torch.normal(mean, std, size, *, out=None) → Tensor
torch.normal(2, 3, size=(1, 4))
tensor([[-1.3987, -1.9544,  3.6048,  0.7909]])

[TORCH.NORMAL]

from: -柚子皮-

ref: 

 

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。