2.4K Star 8.2K Fork 4.4K

GVPMindSpore / mindspore

 / 详情

[MDT][MT][910A/B][8p]resnet50 boost 八卡训练报错(The assign_network._network.layer1.0.bn1.moving_mean_temp op dtype is not same, type1:DT_FLOAT, type2:DT_INT32)

DONE
Bug-Report
创建于  
2024-04-11 15:02
name about labels
Bug Report Use this template for reporting a bug kind/bug

Describe the current behavior / 问题描述 (Mandatory / 必填)

resnet50 boost 八卡训练报错(The assign_network._network.layer1.0.bn1.moving_mean_temp op dtype is not same, type1:DT_FLOAT, type2:DT_INT32)

Environment / 环境信息 (Mandatory / 必填)

  • Hardware Environment(Ascend/GPU/CPU) / 硬件环境:

Please delete the backend not involved / 请删除不涉及的后端:
/device ascend

  • Software Environment / 软件环境 (Mandatory / 必填):
    -- MindSpore version (e.g., 1.7.0.Bxxx) :
    -- Python version (e.g., Python 3.7.5) :
    -- OS platform and distribution (e.g., Linux Ubuntu 16.04):
    -- GCC/Compiler version (if compiled from source):
    Milan_C17/20240408
    r2.3.q1_20240409230812_6509

  • Excute Mode / 执行模式 (Mandatory / 必填)(PyNative/Graph):

Please delete the mode not involved / 请删除不涉及的模式:
/mode graph

Related testcase / 关联用例 (Mandatory / 必填)

test_ms_resnet50_imagenet_boost_train_check_loss_910_8p_0003
源码仓:https://gitee.com/mindspore/models/tree/master/official/cv/ResNet

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

  1. cd solution_test/cases/02network/00cv/resnet50/train/
  2. pytest -s test_ms_resnet50_imagenet_boost_train_check_loss_910_8p_0003.py

Describe the expected behavior / 预期结果 (Mandatory / 必填)

执行通过,性能及精度正常

Related log / screenshot / 日志 / 截图 (Mandatory / 必填)

输入图片说明

Special notes for this issue/备注 (Optional / 选填)

转给樊瑞

评论 (3)

wanlinhui_A 创建了Bug-Report
wanlinhui_A 添加了
 
kind/bug
标签
wanlinhui_A 添加了
 
device/ascend
标签
wanlinhui_A 添加了
 
v2.3.0
标签
wanlinhui_A 添加了
 
sig/modelzoo
标签
展开全部操作日志

Please assign maintainer to check this issue.
请为此issue分配处理人。
@wanlinhui_A

感谢您的提问,您可以评论//mindspore-assistant更快获取帮助:

  1. 如果您刚刚接触MindSpore,或许您可以在教程找到答案
  2. 如果您是资深Pytorch用户,您或许需要:
  1. 如果您遇到动态图问题,可以设置set_context(pynative_synchronize=True)查看报错栈协助定位
  2. 模型精度调优问题可参考官网调优指南
  3. 如果您反馈的是框架BUG,请确认您在ISSUE中提供了MindSpore版本、使用的后端类型(CPU、GPU、Ascend)、环境、训练的代码官方链接以及可以复现报错的代码的启动方式等必要的定位信息
  4. 如果您已经定位出问题根因,欢迎提交PR参与MindSpore开源社区,我们会尽快review
wanlinhui_A 修改了描述
wangbixing 添加协作者wangbixing
wangbixing 负责人wangbixing 修改为fary86
fary86 任务状态TODO 修改为VALIDATION
fary86 添加了
 
rct/oldrelease
标签
fary86 添加了
 
rca/algorithm
标签
fary86 添加了
 
ctl/solutiontest
标签
fary86 里程碑B-SIG-ASCEND 修改为B-MDTest

问题根因

ResNet50 boost性能优化代码bug导致

解决方法

回退原PR !68139:Optimize ResNet50 boost performance
修复链接:!68208:Revert "Optimize ResNet50 boost performance"

自验结果

使用回退PR产生的mindspore,ResNet50 boost 8 卡可以正常训练
输入图片说明

i-robot 添加了
 
gitee
标签
i-robot 添加了
 
gitee
标签
i-robot 添加了
 
foruda
标签
fary86 添加协作者fary86
fary86 负责人fary86 修改为wanlinhui_A
wanlinhui_A 任务状态VALIDATION 修改为DONE

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(4)
6568201 fary86 1584438549
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore

搜索帮助