Skip to content

Comments

Clarify the cast() op behavior between different data types#726

Merged
fdwr merged 4 commits intowebmachinelearning:mainfrom
inexorabletash:cast-op-behavior
Jul 17, 2024
Merged

Clarify the cast() op behavior between different data types#726
fdwr merged 4 commits intowebmachinelearning:mainfrom
inexorabletash:cast-op-behavior

Conversation

@inexorabletash
Copy link
Contributor

@inexorabletash inexorabletash commented Jul 16, 2024

Inspired by the ONNX documentation[1], outline what inference-time casts are well-defined and which are implementation-defined for out-of-range values.

Fixes #489

1: https://onnx.ai/onnx/operators/onnx__Cast.html


Preview | Diff

Inspired by the ONNX documentation[1], outline what inference-time
casts are well-defined and which are implementation-defined for
out-of-range values.

Fixes #489

1: https://onnx.ai/onnx/operators/onnx__Cast.html
@inexorabletash inexorabletash requested review from fdwr and huningxin July 16, 2024 19:41
@inexorabletash
Copy link
Contributor Author

@fdwr & @huningxin - could you please review?

Hopefully I didn't go too far with the table styling.

Copy link
Collaborator

@fdwr fdwr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks JB for adding clarity.

Copy link
Contributor

@huningxin huningxin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@fdwr fdwr merged commit 19762ed into webmachinelearning:main Jul 17, 2024
github-actions bot added a commit that referenced this pull request Jul 17, 2024
SHA: 19762ed
Reason: push, by fdwr

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@inexorabletash inexorabletash deleted the cast-op-behavior branch July 17, 2024 23:02
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.

Clarify the casting behavior from floating-point / signed integers <-> unsigned integers

3 participants