📜  torch.cuda.randn - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:14.705000             🧑  作者: Mango

代码示例1
shape = torch.Size((300, 300))
x = torch.cuda.FloatTensor(shape)
torch.randn(shape, out=x)