Skip to content

Fix string and undefined in tobytes() #130

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

titaiwangms
Copy link
Collaborator

STRING and UNDEFINED are not supported by itemsize.

NOTE: STRING shows up when array[None] appears (UNDEFINED is added only for consistency.)

@titaiwangms titaiwangms requested a review from justinchuby July 18, 2025 23:46
@titaiwangms titaiwangms requested a review from a team as a code owner July 18, 2025 23:46
Copy link

codecov bot commented Jul 18, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 74.84%. Comparing base (329a798) to head (0f3f91a).

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/onnx_ir/_core.py 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #130      +/-   ##
==========================================
- Coverage   74.86%   74.84%   -0.02%     
==========================================
  Files          39       39              
  Lines        4726     4727       +1     
  Branches      967      968       +1     
==========================================
  Hits         3538     3538              
  Misses        839      839              
- Partials      349      350       +1     

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

Signed-off-by: Ti-Tai Wang <titaiwang@microsoft.com>
@titaiwangms titaiwangms force-pushed the titaiwang/support_string_tobytes branch from 43eea17 to 0f3f91a Compare July 18, 2025 23:49
@justinchuby
Copy link
Member

Is tobytes() well defined for STRING? I wonder why we would see array[None]? Is it valid?

@justinchuby justinchuby marked this pull request as draft July 23, 2025 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants