-
Notifications
You must be signed in to change notification settings - Fork 5.6k
OP Test Input Shape Requirements (English Version)
Tao Luo edited this page Dec 24, 2019
·
5 revisions
Specification summary:
- Section 1, Explanations Of The Specification
- Section 2, Check Of The Specification
- Section 3, Check Of CI
- Section 4, Suggestions Of Check Failure
Supplementary note:
- You may find some aspects that are not taken into account in the existing specifications, which need to be continuously supplemented and improved during the implementation process. Please feel free to give your feedback.
There is a problem that the input shape is too small in several OP tests, which leads to incomplete test. The grad check of some kernels is related to the size of the input shape. If the input shape is too small, the grad check passes, but it may still have problems.
In order to better ensure the coverage of OP tests, this specification is proposed. The corresponding detections are added to Op tests, and CI will check the white list of this specification.
- Op tests shape rule: the product of the input dimension of at least one test case must be greater than or equal to 100.
- The white list of this specification wil skip specific OPs with limited input shape and OPs to be repaired. White list path: python/paddle/fluid/tests/unittests/white_list/check_shape_white_list.py
- The whitelist will be checked in CI. If you need to modify it, please contact one of specific people for approval.
- If a special OP needs to be added to the white list, please contact one of specific people for approval.
- Please put the large input test case in the first in OP tests, otherwise the check may still fail .
If you encounter other problems, please contact @zhupengyang。