2.3K Star 8.1K Fork 4.3K

GVPMindSpore / mindspore

 / 详情

[CI] ST failure in daily version<test_momentum_op.py::test_momentum >

DONE
Bug-Report
创建于  
2022-03-15 15:44
name about labels
Bug Report Use this template for reporting a bug kind/bug

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

Those testcases failed, and daily verison build failed

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

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

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

  • Software Environment / 软件环境 (Mandatory / 必填):
    -- MindSpore version (e.g.,r1.6 commit_id=xxxx) : master commit_id = 22240df6c00a30e8a5f7355f8b31e92c684e31e5
    -- 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):

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

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

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

test_momentum_op.py::test_momentum
test_pynative_lenet.py::test_ascend_pynative_lenet
test_pynative_lenet.py::test_pynative_lenet_with_new_interface等用例

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

  1. code compile
  2. install mindspore*.whl
  3. run testcase

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

Those test cases success

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

URL:https://build.mindspore.cn/blue/organizations/jenkins/MindSpore_Gitee_Version/detail/MindSpore_Gitee_Version/3342/pipeline/1221
https://build.mindspore.cn/blue/organizations/jenkins/MindSpore_Gitee_Version/detail/MindSpore_Gitee_Version/3342/pipeline/1222
输入图片说明
输入图片说明
输入图片说明

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

test_momentum_op.py::test_momentum等用例在windows环境上失败,导致版本构建失败

评论 (3)

wmzheng2020 创建了Bug-Report
wmzheng2020 添加了
 
kind/bug
标签
wmzheng2020 添加了
 
attr/function
标签
wmzheng2020 添加协作者YuJianfeng
展开全部操作日志

Please add labels (comp or sig), also you can visit https://gitee.com/mindspore/community/blob/master/sigs/dx/docs/labels.md to find more.
为了让代码尽快被审核,请您为Pull Request打上 组件(comp)或兴趣组(sig) 标签,打上标签的PR可以直接推送给责任人进行审核。
更多的标签可以查看https://gitee.com/mindspore/community/blob/master/sigs/dx/docs/labels.md
以组件相关代码提交为例,如果你提交的是data组件代码,你可以这样评论:
//comp/data
当然你也可以邀请data SIG组来审核代码,可以这样写:
//sig/data
另外你还可以给这个PR标记类型,例如是bugfix或者是特性需求:
//kind/bug or //kind/feature
恭喜你,你已经学会了使用命令来打标签,接下来就在下面的评论里打上标签吧!

Appearance & Root Cause

AssignAddmindspore/ccsrc/plugin/device/cpu/kernel/mkldnn/assignadd_cpu_kernel.ccmindspore/ccsrc/plugin/device/cpu/kernel/arithmetic_cpu_kernel.cc 里分别注册了两次。后注册的覆盖先注册的,用例中是 assignadd_cpu_kernel.cc 后注册,这个里只支持 Float32 类型(arithmetic_cpu_kernel.cc 里支持了 Int32/Int64/Float32/Float64 多种类型),导致用例里类型不支持而错误。

Fix Solution

  1. 删除 AssignAddassignadd_cpu_kernel.cc 里的注册,使用 arithmetic_cpu_kernel.cc 的多类型支持版本。
  2. 加固注册机制,重复注册的报异常,避免因为没有跑到而导致的隐性多次注册。

    附加内容: 将头文件调注册宏的地方挪到源文件中去.

TronZhang 任务状态TODO 修改为ACCEPTED
TronZhang 任务状态ACCEPTED 修改为WIP
TronZhang 添加协作者TronZhang
TronZhang 负责人TronZhang 修改为wmzheng2020
TronZhang 任务状态WIP 修改为VALIDATION
TronZhang 里程碑B-SIG-AKG 修改为B-SolutionTest
wmzheng2020 任务状态VALIDATION 修改为DONE

登录 后才可以发表评论

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

搜索帮助