orch.utils.data.DataLoader
时间: 2023-08-25 07:15:52 浏览: 91
torch.utils.data.DataLoader是PyTorch中用于加载数据的工具类。它可以将自定义的数据集(如图片、文本等)加载到模型中进行训练或推断。DataLoader可以指定批次大小、是否打乱数据、并行加载等参数来提高数据加载的效率和灵活性。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Pytorch构建数据集——torch.utils.data.Dataset()和torch.utils.data.DataLoader()](https://blog.csdn.net/weixin_41560402/article/details/108121344)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [【深度学习】torch.utils.data.DataLoader相关用法 | dataloader数据加载器 | pytorch](https://blog.csdn.net/weixin_46274756/article/details/127940293)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文