当前位置:网站首页>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

边栏推荐
猜你喜欢
随机推荐
国际原子能机构总干事警告称扎波罗热核电站安全形势已“完全失控”
UMA&港理工&阿里提出SP-ViT,为视觉Transformer学习2D空间先验知识!
【目标检测】YOLOv4特征提取网络——CSPDarkNet53结构解析及PyTorch实现
技术分享| 融合调度系统中的电子围栏功能说明
子查询
你知道吗?那些专属于代码的浪漫~
动手学深度学习_LeNet
请 AI 画家弄了个 logo,网友热议:画得非常好,下次别画了!
傅里叶级数与傅里叶变换学习
企业应当实施的5个云安全管理策略
HyperLynx仿真(一)LineSim简单介绍
IBM Q复制启动停止查看状态
【无标题】
DC/DC电感底部要不要覆铜?
移动跨端技术方案分析对比
ESP8266-Arduino编程实例-APDS-9930环境光和趋近感器驱动
Flutter使用 json_serializable 解析 JSON 最佳方案
yolo系列的head模块
Leetcode - using sequence traversal features first completed 114. The binary tree to the list
考研数一数二数三之间的具体详细区别









