Skip to content

Conversation

xadupre
Copy link
Contributor

@xadupre xadupre commented Jun 11, 2024

Description

from_array, to_array do not support float 8 types, int4, uint4 bfloat16. It is confusing.
Fixes #6152 as well.

Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Copy link

codecov bot commented Jun 11, 2024

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.

Files Patch % Lines
onnx/numpy_helper.py 89.28% 4 Missing and 5 partials ⚠️
onnx/reference/custom_element_types.py 27.27% 7 Missing and 1 partial ⚠️
onnx/test/reference_evaluator_test.py 20.00% 4 Missing ⚠️
onnx/test/test_backend_reference.py 25.00% 2 Missing and 1 partial ⚠️
onnx/helper.py 75.00% 1 Missing and 1 partial ⚠️
onnx/backend/test/case/node/cast.py 0.00% 1 Missing ⚠️
onnx/test/numpy_helper_test.py 97.22% 1 Missing ⚠️
onnx/test/parser_test.py 87.50% 1 Missing ⚠️
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     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
xadupre added 6 commits June 12, 2024 12:11
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
@justinchuby
Copy link
Member

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)

xadupre added 2 commits June 12, 2024 20:34
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
@xadupre
Copy link
Contributor Author

xadupre commented Jun 13, 2024

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)

The types defined here are returned by to_array. Why not making them public?

Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
xadupre added 2 commits June 13, 2024 12:02
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
@xadupre xadupre changed the title Makes to_array, from_array support custom numpy dtype Makes to_array, from_array support custom numpy dtype, support float16 type in parser Jun 13, 2024
xadupre and others added 6 commits June 23, 2024 13:31
Co-authored-by: Justin Chu <justinchuby@users.noreply.github.com>
Signed-off-by: Xavier Dupré <xadupre@users.noreply.github.com>
Co-authored-by: Justin Chu <justinchuby@users.noreply.github.com>
Signed-off-by: Xavier Dupré <xadupre@users.noreply.github.com>
Co-authored-by: Justin Chu <justinchuby@users.noreply.github.com>
Signed-off-by: Xavier Dupré <xadupre@users.noreply.github.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
@gramalingam gramalingam enabled auto-merge July 3, 2024 20:52
@gramalingam gramalingam added this to the 1.17 milestone Jul 3, 2024
xadupre and others added 9 commits July 5, 2024 13:05
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
@gramalingam gramalingam added this pull request to the merge queue Jul 9, 2024
Merged via the queue into onnx:main with commit 6179ca1 Jul 9, 2024
andife pushed a commit to andife/onnx that referenced this pull request Jul 20, 2024
…6 type in parser (onnx#6170)

### Description
from_array, to_array do not support float 8 types, int4, uint4 bfloat16.
It is confusing.
Fixes onnx#6152 as well.

---------

Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupré <xadupre@users.noreply.github.com>
Co-authored-by: Justin Chu <justinchuby@users.noreply.github.com>
Co-authored-by: G. Ramalingam <grama@microsoft.com>
Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
linshokaku pushed a commit to linshokaku/onnx that referenced this pull request Oct 2, 2024
…6 type in parser (onnx#6170)

### Description
from_array, to_array do not support float 8 types, int4, uint4 bfloat16.
It is confusing.
Fixes onnx#6152 as well.

---------

Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupré <xadupre@users.noreply.github.com>
Co-authored-by: Justin Chu <justinchuby@users.noreply.github.com>
Co-authored-by: G. Ramalingam <grama@microsoft.com>
Signed-off-by: Linsho Kaku <linsho@preferred.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run release CIs Use this label to trigger release tests in CI
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Missing type support in parser for various types (float16, bfloat16, ...)
3 participants