Skip to content

Update float8 table for the Cast op spec#7085

Merged
justinchuby merged 5 commits intomainfrom
justinchu/float8-sat
Jul 1, 2025
Merged

Update float8 table for the Cast op spec#7085
justinchuby merged 5 commits intomainfrom
justinchu/float8-sat

Conversation

@justinchuby
Copy link
Copy Markdown
Member

@justinchuby justinchuby commented Jun 26, 2025

Currect the float8 saturation behavior for Cast using table from the float8 technical documentation https://onnx.ai/onnx/technical/float8.html, since the behavior for +- Inf and NaN was not correctly specified.

Fixes #6220

Currect the float8 saturation behavior for Cast using table from the float8 technical documentation.

Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
@justinchuby justinchuby requested a review from a team as a code owner June 26, 2025 05:29
@github-project-automation github-project-automation Bot moved this to In progress in PR Tracker Jun 26, 2025
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
@justinchuby justinchuby added the auto update doc Generate md/proto files automatically using the CI pipeline label Jun 26, 2025
Comment thread onnx/defs/tensor/defs.cc Outdated
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
@justinchuby justinchuby added topic: operator Issues related to ONNX operators topic: spec clarification Clarification of the ONNX spec needed labels Jun 26, 2025
@justinchuby justinchuby requested a review from xadupre June 26, 2025 05:31
@justinchuby justinchuby changed the title Update float8 cast table Update float8 table for the Cast op Jun 26, 2025
@justinchuby justinchuby changed the title Update float8 table for the Cast op Update float8 table for the Cast op spec Jun 26, 2025
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@justinchuby justinchuby removed the auto update doc Generate md/proto files automatically using the CI pipeline label Jun 26, 2025
@justinchuby justinchuby reopened this Jun 26, 2025
@github-project-automation github-project-automation Bot moved this from In progress to Done in PR Tracker Jun 26, 2025
@github-project-automation github-project-automation Bot moved this from Done to In progress in PR Tracker Jun 26, 2025
@justinchuby justinchuby added this to the 1.19 milestone Jun 26, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.40%. Comparing base (17280e2) to head (9c2f58e).
Report is 4 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7085   +/-   ##
=======================================
  Coverage   56.40%   56.40%           
=======================================
  Files         510      510           
  Lines       32721    32721           
  Branches     3093     3093           
=======================================
  Hits        18457    18457           
  Misses      13410    13410           
  Partials      854      854           

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

@justinchuby justinchuby enabled auto-merge (squash) July 1, 2025 04:15
@github-project-automation github-project-automation Bot moved this from In progress to Reviewer approved in PR Tracker Jul 1, 2025
@justinchuby justinchuby disabled auto-merge July 1, 2025 16:29
@justinchuby justinchuby enabled auto-merge (squash) July 1, 2025 16:29
@justinchuby justinchuby disabled auto-merge July 1, 2025 16:30
@justinchuby justinchuby enabled auto-merge (squash) July 1, 2025 16:32
@justinchuby
Copy link
Copy Markdown
Member Author

I don't understand what is blocking this merge. It's not clear from github

@justinchuby justinchuby merged commit f4be6e6 into main Jul 1, 2025
36 of 39 checks passed
@justinchuby justinchuby deleted the justinchu/float8-sat branch July 1, 2025 17:51
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in PR Tracker Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: operator Issues related to ONNX operators topic: spec clarification Clarification of the ONNX spec needed

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

onnx.reference: Cast to float8e4m3fnuz treats +/-inf wrong

2 participants