当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
MOSFET米勒平台(Miller Plateau)
Leetcode - using sequence traversal features first completed 114. The binary tree to the list
OAuth2图文快速入门
WPF 截图控件之画笔(八)「仿微信」
Yolov5 测试和训练自己的数据集
Tapdata 开源项目基础教程:功能特性及实操演示
*W3C* Standards Organization
图像分割方法
聪明的儿子处理婆媳关系的方法(处理婆媳关系的方法)
SchedulX V1.5.0发布,提供快速压测、对象存储等全新功能!
[Flight Control Development Advanced Course 7] Crazy Shell Open Source Formation UAV - Formation Flight
免费翻译软件哪个好用
Share | technology integration electronic fence function of scheduling system
考研概率论与数理统计(知识点梳理)
【Qt】解决 “由于找不到Qt5Cored.dll,无法继续执行代码”(亲测有效)
【目标检测】yolov3特征提取网络------Darknet53网络及pytorch实现
抗积分饱和PID控制器
外键约束;外键约束
The use of DDR3 (Naive) in Xilinx VIVADO (3) simulation test
DC-DC电源中前馈电容的选择