已关闭
[Bug-Report|缺陷反馈]: addmm和baddbmm接口支持支持混合精度计算输入,当前16in32out场景被拦截 #3879
HKFLYE创建于  7月6日关闭于  7月7日
HKFLYE
HKFLYE成员
7月6日 创建

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

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

addmm和baddbmm接口支持支持混合精度计算输入,当前16in32out场景拦截了bias和out tensor dtype不一致的场景

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

910b / 910_95

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

使用torch.baddbmm接口,输入参数左右矩阵dtype为fp16,bias为bf16,out为fp32,out_dtype 指定为torch.float32

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

接口正常执行返回结果

[W701 06:55:22.074435760 NPuCachingAllocator.cpp:200] Warning: The current CANN and Soc versions require processing for 32 padding size, with memory allocation. (function operator())Traceback (most recent call last):
File "/home/h00918682/test_script/outDtypeTest_baddbmm.py", line 12, in npu_out = (torch.baddbmm(input_tensor, a, b, out_dtype=torch.float32))
RuntimeError: baddbmm:third_party/op-plugin/op_plugin/ops/opapi/BaddbmmKernelNpu0pApi.cpp:66 NPu function error: call aclnnBaddbmm failed, error code is 161002
[ERR0R] 2026-07-01-06:55:22 (PID:1039285, Device:0, RankID:-1) ERR00100 PTA call acl api failed.

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

likedislike
HKFLYEHKFLYE成员
7月6日 添加了label:bug-report
HKFLYEHKFLYE成员
7月6日 关联了pull request:删除addmm和baddbmm在16in32out场景下的out和bias类型拦截
CANN-robotCANN-robot成员
7月7日 关闭了 issue
CANN-robotCANN-robot成员
7月7日 添加了label:resolved