-
Couldn't load subscription status.
- Fork 5.9k
[API compatibility] add paddle.ravel #74439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 你的PR提交成功,感谢你对开源项目的贡献! |
test/legacy_test/test_ravel.py Outdated
| self.data_np = np.array([[1, 2, 3], [4, 5, 6]], dtype='float32') | ||
| self.data_flat = self.data_np.ravel() | ||
| | ||
| def test_case_1(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
反向case也测两个吧
test/legacy_test/test_ravel.py Outdated
| self.data_flat = self.data_np.ravel() | ||
| | ||
| def test_case_1(self): | ||
| paddle_code = textwrap.dedent( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个paddle_code的作用是?应该不用这么写吧
test/legacy_test/test_ravel.py Outdated
| | ||
| def test_case_1(self): | ||
| paddle_code = textwrap.dedent( | ||
| """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
静态图case也测两个吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done,已更新~
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## develop #74439 +/- ## =========================================== Coverage ? 100.00% =========================================== Files ? 1 Lines ? 2 Branches ? 0 =========================================== Hits ? 2 Misses ? 0 Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
test/legacy_test/test_ravel.py Outdated
| class TestPaddleRavel_case3(TestPaddleRavel): | ||
| def setUp(self): | ||
| # check Ravel 0d (scalar) | ||
| self.input_np = np.array(5.0, dtype="float32") # 标量 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
用英文
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* add paddle.ravel * fix test case * fix typo
PR Category
User Experience
PR Types
New features
Description
Pcard-73145
增加paddle.ravel API