This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
描述
From #1378
为Reduce类型算子增加新的测试用例
算子类型
OpMapper
Test Cases Checklist
张量维度
special shape
挑选 2D/3D/4D 张量中的一个,测试下面的特殊情况。
张量数据类型
广播
算子属性
算子属性的测试用例。
op_type
axis
keepdim
备注
python/test/ops
下的test_add_op_new.py
、test_relu6_op.py
、test_left_shift_op.py
、test_right_shift_op.py
、test_scale_op.py
和test_dropout_infer_op.py
shape
、dtype
和属性组合的情况下出现错误,如果是较为简单的类型不支持等错误,可尝试在PR中顺带一起解决,如果是较为复杂的错误,可以寻求其他小伙伴协助解决int32
的情况下,paddle的sum
得到的输出数据类型为int64
,需要特殊处理,已添加cast
算子处理reduce_all
和reduce_any
的keepdim
参数未生效,已修复shape=[64, 32, 16, 8, 4], axis=[], keepdim=True
的计算结果错误,经排查发现生成的代码有数据读写冲突的问题,已修复