[0-size Tensor No.358] Add 0-size Tensor support for paddle.vision.ops.generate_proposals [fluid_ops] #74261
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.
PR Category
Operator Mechanism
PR Types
Bug fixes
Description
https://www.paddlepaddle.org.cn/documentation/docs/zh/3.0/api/paddle/vision/ops/generate_proposals_cn.html#generate-proposals
PaddleAPITest 中为自定义规则,运行结果和文档有点差异,0-size输入时
rpn_rois 维度是 [0, 4]
rpn_rois_num 维度是 []
https://github.com/PFCCLab/PaddleAPITest/blob/e7f045dca73546ff78de7b4c772a7b15b1b52077/tester/paddle_to_torch/rules.py#L2617
PaddleAPITest 测试为torch error,其他通过
