-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Feature] Support float8 dtype storage. #9906
base: develop
Are you sure you want to change the base?
Conversation
Thanks for your contribution! |
|
return new_t | ||
# return paddle.to_tensor(tensor.view(np.int8), dtype=paddle.float8_e4m3fn) | ||
raise ValueError() | ||
return paddle.to_tensor(tensor) |
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.
trick 绕过fp8赋值。
Codecov ReportAll modified and coverable lines are covered by tests ✅
❌ Your project check has failed because the head coverage (51.33%) is below the target coverage (58.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #9906 +/- ##
===========================================
- Coverage 51.40% 51.33% -0.07%
===========================================
Files 745 745
Lines 118373 118596 +223
===========================================
+ Hits 60853 60886 +33
- Misses 57520 57710 +190 ☔ View full report in Codecov by Sentry. |
return paddle.to_tensor(tensor) | ||
|
||
|
||
class EextendDtypeNumpySafe(unittest.TestCase): |
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.
Extend
Before submitting
tests
folder. If there are codecov issues, please add tests cases first.PR types
New features
PR changes
Others
Description
Support float8 dtype storage.