Paddle
Paddle copied to clipboard
[0-size Tensor Job2 No.78、98] Add 0-size Tensor support for sum
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通过