forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FP8] Implementation of FP8 element types (ov::element::f8e4m3 and ov…
…::element::f8e5m2) (openvinotoolkit#21608) * FP8 element types init * Remove redundant union * Replace using ov * Update fundamental types * Update class name check * Update tests * Remove redundant sign * Expose f8 types in Python * Add to py to dtype map * Style alignment * Align python style * Update test values * Remove constexpr from_bits to fix warning * Add trivially construcitble asserts and common constrexpr * Align python tests opset * Update f8e4m3 <-> float conversion * f8e5m2 class update * Add f8e5m2 unit test * Add to string conversion tests * Rename class f8e4m3 -> float8_e4m3 * Rename f8e5m2 -> float8_e5m2 * Remove size() and to_string from float8 - size() can be replaced by compile time sizeof - to_string can be replaced by std::to_string() * float8 E5M2 remove unused constexpr value * Fix union initialization and ncc style rules * Fix test issues * Use NaN from std::numeric_limits instead macro - minor refactor of float8_e4m3 * Update nf4 usage in element_type.cpp * Sync openvino.style with master * Update f8e5m2 test --------- Co-authored-by: Raasz, Pawel <[email protected]>
- Loading branch information
Showing
27 changed files
with
1,426 additions
and
75 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.