当前位置:网站首页>MindSpore:【model_zoo】【resnet】尝试用THOR优化器运行时报cannot import name ‘THOR‘
MindSpore:【model_zoo】【resnet】尝试用THOR优化器运行时报cannot import name ‘THOR‘
2022-08-04 09:03:00 【小乐快乐】
问题描述:
【功能模块】
https://gitee.com/mindspore/mindspore/tree/master/model_zoo/official/cv/resnet
框架版本是 mindspore-ascend 1.1.1

【操作步骤&问题现象】
1、在src/config.py中指定"optimizer": "Thor"
2、cd scripts/ && bash run_standalone_train.sh resnet50 cifar10 /home/data_set/cifar-10-batches-bin
3、
查看日志:
[email protected]:/home/thor/mindspore/model_zoo/official/cv/resnet/scripts# cat train/log
WARNING: 'ControlDepend' is deprecated from version 1.1 and will be removed in a future version, use 'Depend' instead.
Traceback (most recent call last):
File "train.py", line 21, in <module>
from mindspore.nn.optim import Momentum, THOR
ImportError: cannot import name 'THOR' from 'mindspore.nn.optim' (/usr/local/python3.7.5/lib/python3.7/site-packages/mindspore/nn/optim/__init__.py)
【截图信息】

解决方案:
通过检查发现问题应该时脚本代码和MindSpore版本不匹配,因为从MindSpore1.2版本开始才有THOR优化器,1.1版本还没有
边栏推荐
- B站回应HR称“核心用户都是Loser”、求职者是“白嫖党”:已被劝退
- Could you please talk about how the website is accessed?[Interview questions in the web field]
- RL学习笔记(一)
- LVGL的多语言转换工具--字体设置的好助手
- 大家好,请教一个问题啊,我们通过flinkcdc把Oracle数据同步到doris,目前的问题是,只
- How Oracle for current library or certain library data on the same server number?
- 记录十条工作中便利的API小技巧
- 抬升市场投资情绪,若羽臣是否还需“自身硬”?
- 2022年化工自动化控制仪表考试模拟100题及模拟考试
- 速速脱单诀窍
猜你喜欢

94后字节P7晒出工资单:狠补了这个,真不错...

Grafana9.0发布,Prometheus和Loki查询生成器、全新导航、热图面板等新功能!

云函数实现网站自动化签到配置详解【Web函数/Nodejs/cookie】

Anton Paar安东帕密度计比重计维修DMA35性能参数

2022年制冷与空调设备运行操作特种作业证考试题库及模拟考试

2022-08-02 分析RK817 输出32k clock PMIC_32KOUT_WIFI给WiFi模块 clock 注册devm_clk_hw_register
![[Computer recording screen] How to use bandicam to record the game setting graphic tutorial](/img/a7/0ac5e2028c5f1b013da56b795143e7.jpg)
[Computer recording screen] How to use bandicam to record the game setting graphic tutorial

ISO14443A读卡流程(作为示例参考)
![[Cloud Residency Co-Creation] HCSD Celebrity Live Streaming – Employment Guide](/img/50/86f0edaab8317e22c9ffdb2a2c6e93.png)
[Cloud Residency Co-Creation] HCSD Celebrity Live Streaming – Employment Guide

sync-diff-inspector 使用实践
随机推荐
【Attention】Dual Attention(DANet) & Fully Attention(FLA)
命里有时终须有--记与TiDB的一次次擦肩而过
ShuffleNet v2 network structure reproduction (Pytorch version)
技术实现 | 图像检索及其在高德的应用
获取cpu的核数
ShowMeAI —— Show u 三连
【无标题】
户外徒步旅行
张朝阳对话俞敏洪:谈宇宙、谈焦虑、谈创业、谈退休、谈人生
MATLAB/Simulink快捷键
关于#sql#的问题:后面换了一个数据库里面的数据就不能跑了
cannot import name ‘import_string‘ from ‘werkzeug‘【bug解决】
注意力机制
【论文笔记】Delving into the Estimation Shift of Batch Normalization in a Network
[Cloud Residency Co-Creation] HCSD Celebrity Live Streaming – Employment Guide
Linux Redis cache avalanche, breakdown, penetration
关于Oracle RAC 11g重建磁盘组的问题
Detailed explanation of NAT/NAPT address translation (internal and external network communication) technology [Huawei eNSP]
DeLighT:深度和轻量化的Transformer
基于cRIO-904X搭建Simulink与Labview环境