[SWE-Paddle] Add task PaddlePaddle__Paddle_74439 - #1458
Open
Echo-Nie wants to merge 5 commits into
Open
Conversation
|
|
||
| Paddle 目前缺少 `ravel` 接口。需要新增 `paddle.ravel(input)`,将输入 Tensor 的所有维度展平成一维,元素顺序和数据类型保持不变。 | ||
|
|
||
| 同时还需要支持标量、普通 Tensor 和 `0-size Tensor`。 |
Contributor
Author
There was a problem hiding this comment.
本意其实是想和0-szie做一个区分...
| - 返回结果应为一维 Tensor,元素顺序和数据类型与输入一致 | ||
| - 标量输入的结果 shape 应为 `[1]` | ||
| - `0-size Tensor` 应返回 shape 为 `[0]` 的结果 | ||
| - 现有 `paddle.flatten` 的行为保持不变 |
Contributor
There was a problem hiding this comment.
paddle.flatten 感觉在描述里好突兀,是不是去掉比较合适?
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.
关联
说明
PaddlePaddle__Paddle-74439@sunzhongkai588
验证结果
flattenP2Pravelbehavior F2Ptests/test.patchsolution/code.patchBase:
Solution: