已关闭
[Bug-Report|缺陷反馈]: foreach_norm大tensor场景下calcBuf越界 #3574
east_yang创建于  6月25日关闭于  6月26日
east_yang成员
6月25日 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

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

foreach_norm大tensor场景下calcBuf越界

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

910B

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

import torch
tmp = []
for i in range(13):
tmp.append(torch.randn([432000256]).float().npu())
torch._foreach_norm(tmp, 2.0)

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

功能正常

image.png

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

likedislike
Eeast_yang成员
6月25日 添加了label:bug-report
Eeast_yang成员
6月25日 关联了pull request:fix: foreach_norm修复大tensor场景下calcBuf越界问题
oscillatedoscillated成员
6月26日 将 east_yang 设为负责人
CANN-robotCANN-robot成员
6月26日 关闭了 issue
CANN-robotCANN-robot成员
6月26日 添加了label:resolved