当前位置:网站首页>MindSpore:Cifar10Dataset‘s num_workers=8, this value is not within the required range of [1, cpu_thr
MindSpore:Cifar10Dataset‘s num_workers=8, this value is not within the required range of [1, cpu_thr
2022-07-30 19:04:00 【小乐快乐】
问题描述:
Cifar10Dataset's num_workers=8, this value is not within the required range of [1, cpu_thr这个有办法解决吗?
解决方案:
试着设置为4或者3,2试试。
this value is not within the required range of [1, cpu_thread_cnt=4] 这应该是CPU只有4个线程,但是设置了8个,超过了实际硬件提供的,所以报错。
这里data_set = ds.Cifar10Dataset(dataset_path, num_parallel_workers=1, shuffle=True)
这里
data_set = data_set.map(operations=type_cast_op, input_columns="label", num_parallel_workers=1)
data_set = data_set.map(operations=trans, input_columns="image", num_parallel_workers=1)
需要ds.config.set_num_parallel_workers(4)指令设置并行工作器的默认数量
边栏推荐
- Scala学习:类和对象
- NXP IMX8QXP更换DDR型号操作流程
- JsonUtil基于字符串操作josn
- 高并发秒杀项目总结
- CIMC Shilian Dafeitong is the global industrial artificial intelligence AI leader, the world's top AI core technology, high generalization, high robustness, sparse sample continuous learning, industri
- 【Pointing to Offer】Pointing to Offer 22. The kth node from the bottom in the linked list
- VBA批量将Excel数据导入Access数据库
- C# wpf 无边框窗口添加阴影效果
- What is the value of biomedical papers? How to translate the papers into Chinese and English?
- Range.CopyFromRecordset 方法 (Excel)
猜你喜欢
The advanced version of the cattle brushing series (search for rotating sorted arrays, inversion of the specified range in the linked list)
部分分类网络性能对比
WeChat Mini Program Cloud Development | Urban Information Management
Node encapsulates a console progress bar plugin
经济新闻:错误# 15:初始化libiomp5md。dll,但发现libiomp5md。已经初始化dll。解决方法
牛客刷题系列之进阶版(组队竞赛,排序子序列,倒置字符串, 删除公共字符,修理牧场)
Critical Reviews | A review of the global distribution of antibiotics and resistance genes in farmland soil by Nannong Zou Jianwen's group
VBA批量将Excel数据导入Access数据库
NXP IMX8QXP replacement DDR model operation process
【PHPWord】PHPOffice 套件之PHPWord快速入门
随机推荐
Spark学习:用spark实现ETL
Chapter 14 Type Information
NXP IMX8QXP更换DDR型号操作流程
Spark学习:编译Spark项目时遇到的报错
kotlin的by lazy
Difference between Object and Map
vxe-table实现复选框鼠标拖动选中
"Ruffian Heng Embedded Bimonthly" Issue 59
AWS console
Chapter 4 Controlling the Execution Flow
AWS 控制台
沉浸式体验科大讯飞2022消博会“官方指定产品”
【总结】1396- 60+个 VSCode 插件,打造好用的编辑器
NXP IMX8QXP replacement DDR model operation process
牛客刷题系列之进阶版(搜索旋转排序数组,链表内指定区间反转)
第14章 类型信息
Scala学习:类和对象
redis
延时队列优化 (2)
LocalDate时间生成