torch dtype
时间: 2023-10-11 12:04:33 浏览: 154
torch.dtype是用来表示torch.Tensor的数据类型的对象。PyTorch有八种不同的数据类型:32位浮点数(torch.float32或torch.float)、64位浮点数(torch.float64或torch.double)、16位浮点数(torch.float16或torch.half)、无符号8位整数(torch.uint8)、有符号8位整数(torch.int8)、有符号16位整数(torch.int16或torch.short)、32位整数(torch.int32或torch.int)和64位整数(torch.int64或torch.long)。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [005.torch.dtype](https://blog.csdn.net/qq_33866063/article/details/106527296)[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_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文