生成随机数 Posted on 03-05-2021 Views: torch.rand()均匀分布 [0, 1)区间 1torch.rand(shape) torch.randn()标准正态分布(均值为0, 方差为1)即高斯白噪声 1torch.randn(shape)