0
点赞
收藏
分享

微信扫一扫

Pytorch深度学习—tensor的随机抽样函数与分布函数

 

import torch

torch.manual_seed(1)

mean = torch.rand(1, 2)
std = torch.rand(1, 2)

print(torch.normal(mean, std))
举报

相关推荐

0 条评论