[SWE-Paddle] Add task PaddlePaddle__Paddle-78238#1409
Open
Echo-Nie wants to merge 6 commits into
Open
Conversation
|
|
||
| 本 issue 中,0-size Tensor 是指 `Tensor.shape` 中至少存在一个 size 为 `0` 的 dimension,因此其元素个数为 `0`,但仍具有 `shape`、`dtype`、`place` 等 Tensor metadata。 | ||
|
|
||
| 当 `indices` 为 0-size Tensor 时,不存在需要执行的 index update,API 应按 no-op semantics 正常完成。即使 `values` 的 shape 与 `indices` 不一致,也不应仅因 empty update path 中无需使用 `values` 而执行失败。与 empty update 无关的 dtype、rank、`axis` 等现有 validation 应保持不变。 |
Contributor
There was a problem hiding this comment.
我感觉是不是原PR描述里就写的挺清楚了,可以参考当query
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
关联
@sunzhongkai588
说明
新增 SWE-Paddle 任务
PaddlePaddle__Paddle-78238。该任务覆盖
paddle.put_along_axis和Tensor.put_along_axis_对 0-sizeindicesTensor 的处理。测试包含非 0-sizeindicesregression case,以及 out-of-place 和 in-place API 的目标场景,可在 CPU 环境运行。验证结果
tests/test.patchsolution/code.patchBase P2P
Base F2P:out of place接口
Base F2P:in place接口
Solution P2P
Solution F2P:out of place接口
Solution F2P:in place接口