Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
dispatch算子CalTokenSendExpertCnt函数对做减法之后的张量内存重解读,expert ids做减法之后出现负数如-1,内存重解读位fp32后为nan值,调abs接口时对nan做abs
a3及a5
必现
对合法值取绝对值
看代码即可
/assign @wanker
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
dispatch算子CalTokenSendExpertCnt函数对做减法之后的张量内存重解读,expert ids做减法之后出现负数如-1,内存重解读位fp32后为nan值,调abs接口时对nan做abs
Environment / 环境信息 (Mandatory / 必填)
a3及a5
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
必现
Describe the expected behavior / 预期结果 (Mandatory / 必填)
对合法值取绝对值
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
看代码即可
Special notes for this issue/备注 (Optional / 选填)