当前位置:网站首页>num_workers
num_workers
2022-08-04 12:13:00 【Sand side dishes】
num_workers is how many child processes to use to import data.Set to 0, that is, use the main process to import data.Note: This number must be greater than or equal to 0, negative numbers are estimated to be wrong
from torch.utils.data import DataLoadertrain_loader = DataLoader(dataset=train_data, batch_size=train_bs, shuffle=True, num_worker=4)valid_loader = DataLoader(dataset=valid_data, batch_size=valid_bs, num_worker=4)num_workers affects training speed by affecting data loading speed
In the process of adjusting num_workers, I found that the training speed has not changed

边栏推荐
猜你喜欢
随机推荐
超美星空特效,你Get了吗?
Tapdata 开源项目基础教程:功能特性及实操演示
记我的第一篇CCF-A会议论文|在经历六次被拒之后,我的论文终于中啦,耶!
高速电路PCB布局布线参考
形态学(膨胀、腐蚀)
Leetcode brush - structure binary tree (105. Once upon a time sequence and the sequence structure binary tree traversal sequence, 106. From the sequence with the sequence structure binary tree travers
[牛客网]OR63删除公共字符
Nacos手摸手教学【二】Nacos注册中心
AI 助力双碳目标:让每一度电都是我们优化的
简要介绍电源效率测试
The sword refers to the Great Wall Cannon?Official spy photos of Changan's new pickup
WPF 截图控件之画笔(八)「仿微信」
编辑器vscode Already included file name ‘xxx‘ differs from file name ‘xxx‘ only in casing报错
DC-DC电源中前馈电容的选择
*W3C* Standards Organization
外置USB供电与内置锂电池供电自动切换电路
涨姿势了!原来这才是多线程正确实现方式
Transferring Rich Feature Hierarchies for Robust
深度学习------pytorch实现cifar10数据集
数据库表列类型;DML_添加数据;DDL_修改,删除数据库表








