Pytorch常用函数学习记录
torch.randn(): 创建指定任意大小的随机tensor>>> import torch>>> torch.randn(1,2,3)tensor([[[-0.2409, -0.5479, -0.1007], [-0.6485, 0.6540, -0.4707]]])>>> torch.randn(2,2,3)tensor([[[-0.2957, -0.5528, 1.0466], [ 0.61.
原创
2020-12-01 20:22:04 ·
131 阅读 ·
0 评论