Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

[0-size Tensor Job2 No.78、98] Add 0-size Tensor support for sum

Open co63oc opened this issue 5 months ago • 0 comments
trafficstars

PR Category

Execute Infrastructure

PR Types

Improvements

Description

sum 已有修改,问题原因是类型为int32或bool时,需要转换类型为int64,但 FullKernel 中 dtype 参数实际没有使用,需要指定类型 修改cpu/xpu/gpu onednn不支持指定int64类型没有修改 test/legacy_test/test_reduce_op.py 已有单测不再重复添加

PaddleAPITest测试CPU/GPU通过 image

co63oc avatar Jun 16 '25 02:06 co63oc