Skip to content

Restrict scale's values of dequantizeLinear and quantizeLinear to be positive and nonzero - #906

Merged
fdwr merged 7 commits into
webmachinelearning:mainfrom
BruceDai:positive_scale_qdq
Mar 10, 2026
Merged

fdwr merged 7 commits into
webmachinelearning:mainfrom
BruceDai:positive_scale_qdq

Conversation

@BruceDai

@BruceDai BruceDai commented Nov 25, 2025 •

Copy link
Copy Markdown
Contributor

This is a Spec change PR for #879 where we're discussing about the lack of widespread support for the current negative scale of dequantizeLinear and quantizeLinear across all backend.

@fdwr @reillyeon @huningxin PTAL, thanks!


Preview | Diff

Comment thread index.bs Outdated

@fdwr fdwr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👀

Comment thread index.bs Outdated
Comment thread index.bs Outdated

@fdwr fdwr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍 LGTM after 2 comments.

Comment thread index.bs Outdated
Comment thread index.bs Outdated
@BruceDai BruceDai changed the title Restrict scale of dequantizeLinear and quantizeLinear to be positive Restrict scale's values of dequantizeLinear and quantizeLinear to be positive and nonzero Jan 16, 2026

@huningxin huningxin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@fdwr fdwr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍
(awaiting Phillis and Reilly before merging?)

Comment thread index.bs Outdated

@fdwr fdwr left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Still LGTM (just normalized wording across the two regions).

Comment thread index.bs Outdated
Comment thread index.bs Outdated
@BruceDai

Copy link
Copy Markdown
Contributor Author

Thanks @fdwr for your update👍

@fdwr

fdwr commented Mar 10, 2026

Copy link
Copy Markdown
Collaborator

@reillyeon - look good to you now?

@fdwr
fdwr merged commit a4a7eb6 into webmachinelearning:main Mar 10, 2026
2 checks passed
github-actions Bot added a commit that referenced this pull request Mar 10, 2026
…positive and nonzero (#906)

SHA: a4a7eb6
Reason: push, by fdwr

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

5 participants