torch randn
时间: 2023-09-22 14:10:43 浏览: 72
torch.randn是PyTorch中的一个函数,用于从以0为均值,1为方差的标准正态分布中抽取随机数。这个函数可以接受不同的参数,例如可以指定输出的张量大小和数据类型。通过调用torch.randn()函数,可以得到一个满足标准正态分布的随机数张量。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [torch.rand()与torch.randn()的用法与区别](https://blog.csdn.net/m0_46614636/article/details/115958501)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [torch.rand&torch.randn介绍](https://blog.csdn.net/scar2016/article/details/115746978)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文