onnx
onnx copied to clipboard
Makes to_array, from_array support custom numpy dtype, support float16 type in parser
Description
from_array, to_array do not support float 8 types, int4, uint4 bfloat16. It is confusing. Fixes #6152 as well.
Codecov Report
Attention: Patch coverage is 87.05357% with 29 lines in your changes missing coverage. Please review.
Project coverage is 57.14%. Comparing base (
83194ed) to head (622e9c2). Report is 63 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #6170 +/- ##
==========================================
+ Coverage 56.95% 57.14% +0.18%
==========================================
Files 506 507 +1
Lines 30467 31211 +744
Branches 4592 4657 +65
==========================================
+ Hits 17353 17834 +481
- Misses 12285 12531 +246
- Partials 829 846 +17
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Do we want to make custom_element_types.py public? It would be helpful to understand the pros and cons of doing so. (And mention it in the PR description when we make a decision)
Do we want to make
custom_element_types.pypublic? It would be helpful to understand the pros and cons of doing so. (And mention it in the PR description when we make a decision)
The types defined here are returned by to_array. Why not making them public?