torch.randn
时间: 2023-10-31 10:51:05 浏览: 112
pyTorchRNN
torch.randn generates a tensor with random values drawn from a normal distribution with mean 0 and standard deviation 1. The function takes input as size of the resulting tensor. For example, torch.randn(2, 3) will generate a tensor of size (2, 3) with random values.
阅读全文