Skip to content

nanmedian最近被改出bug,计算结果完全不对 #74239

@zhwesky2010

Description

@zhwesky2010

bug描述 Describe the Bug

import paddle

input = paddle.to_tensor(data=[1.4907, float("nan"), 1.0593, 1.5696])
result = input.nanmedian()
print(result)

正确结果应该是1.4907,但paddle返回的结果是0,明显不对,应该是近期改动导致的Bug,在5月份还是正确的。

其他补充信息 Additional Supplementary Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions