Skip to content

paddle.logsumexp 对输入维度限制为 <=4 #78469

@tingPetty

Description

@tingPetty

bug描述 Describe the Bug

paddle.logsumexp 在高维输入上报错:
The input tensor X's dimensions of logsumexp should be less or equal than 4.
但对照框架在该场景可执行,脚本:
pd_error_only_candidate_163_logsumexp.py
是否可以考虑增加支持的张量维度。

# 最小可复现代码。
import paddle

x = paddle.ones([1, 1, 1, 1, 1], dtype='float32')
print(paddle.logsumexp(x, axis=-1))
带有完整回溯的报错信息。
ValueError: (InvalidArgument) The input tensor X's dimensions of logsumexp
should be less or equal than 4.

其他补充信息 Additional Supplementary Information

  • 复现环境:Windows 11,Python 3.10.18,Paddle 3.2.0,CPU。

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions