Skip to content

[quant][graphmode][fix] preserve the type of original value when inserting dequant node#34349

Closed
jerryzh168 wants to merge 30 commits intogh/jerryzh168/241/basefrom
gh/jerryzh168/241/head
Closed

[quant][graphmode][fix] preserve the type of original value when inserting dequant node#34349
jerryzh168 wants to merge 30 commits intogh/jerryzh168/241/basefrom
gh/jerryzh168/241/head

Conversation

@jerryzh168
Copy link
Copy Markdown
Contributor

@jerryzh168 jerryzh168 commented Mar 6, 2020

Stack from ghstack:

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

Differential Revision: D20504456

…rting dequant node

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented Mar 6, 2020

💊 CircleCI build failures summary and remediations

As of commit cf01f1e (more details on the Dr. CI page):


None of the build failures appear to be your fault 💚


  • 2/2 broken upstream at merge base 11a4041 since Mar 21

    Please rebase on the viable/strict branch (expand for instructions)

    If your commit is newer than viable/strict, you can try basing on an older, stable commit:

    git fetch https://github.com/pytorch/pytorch viable/strict
    git rebase --onto FETCH_HEAD $(git merge-base origin/master HEAD)
    

    If your commit is older than viable/strict:

    git fetch https://github.com/pytorch/pytorch viable/strict
    git rebase FETCH_HEAD
    

    Check out the recency history of this "viable master" tracking branch.


🚧 2 upstream failures:

These were probably caused by upstream breakages:


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

This comment has been revised 134 times.

…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
graph->create(Symbol::aten("dequantize"), {quantized_val});
dequant->output()->setDebugName(
original_val->debugName() + ".dequant." + c10::guts::to_string(i));
original_val->debugName() + ".dequant." + c10::guts::to_string(i))
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.

If this was an issue that needed a fix, suggest having a simple test that checks for the type

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this actually only can happen when we do swap dequantize for list of tensors, and it will be tested later in the stack

…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

Differential Revision: [D20504456](https://our.internmc.facebook.com/intern/diff/D20504456)

[ghstack-poisoned]
…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

Differential Revision: [D20504456](https://our.internmc.facebook.com/intern/diff/D20504456)

[ghstack-poisoned]
…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

Differential Revision: [D20504456](https://our.internmc.facebook.com/intern/diff/D20504456)

[ghstack-poisoned]
…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

Differential Revision: [D20504456](https://our.internmc.facebook.com/intern/diff/D20504456)

[ghstack-poisoned]
…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

Differential Revision: [D20504456](https://our.internmc.facebook.com/intern/diff/D20504456)

[ghstack-poisoned]
…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

Differential Revision: [D20504456](https://our.internmc.facebook.com/intern/diff/D20504456)

[ghstack-poisoned]
…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

Differential Revision: [D20504456](https://our.internmc.facebook.com/intern/diff/D20504456)

[ghstack-poisoned]
…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

Differential Revision: [D20504456](https://our.internmc.facebook.com/intern/diff/D20504456)

[ghstack-poisoned]
…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

Differential Revision: [D20504456](https://our.internmc.facebook.com/intern/diff/D20504456)

[ghstack-poisoned]
…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

Differential Revision: [D20504456](https://our.internmc.facebook.com/intern/diff/D20504456)

[ghstack-poisoned]
…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

Differential Revision: [D20504456](https://our.internmc.facebook.com/intern/diff/D20504456)

[ghstack-poisoned]
…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

Differential Revision: [D20504456](https://our.internmc.facebook.com/intern/diff/D20504456)

[ghstack-poisoned]
…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

Differential Revision: [D20504456](https://our.internmc.facebook.com/intern/diff/D20504456)

[ghstack-poisoned]
…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

Differential Revision: [D20504456](https://our.internmc.facebook.com/intern/diff/D20504456)

[ghstack-poisoned]
…e when inserting dequant node"

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

Differential Revision: [D20504456](https://our.internmc.facebook.com/intern/diff/D20504456)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 4caa0db.

@facebook-github-bot facebook-github-bot deleted the gh/jerryzh168/241/head branch March 27, 2020 14:16
okly366 pushed a commit to okly366/pytorch that referenced this pull request Apr 26, 2020
…rting dequant node

Summary:
Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Reviewers:
.

Subscribers:

Tasks:

Tags:

ghstack-source-id: 85ecb25
Pull Request resolved: pytorch/pytorch#34349
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
…rting dequant node (pytorch#34349)

Summary:
Pull Request resolved: pytorch#34349

Set the output type of dequantize node to the type of original value
this is to fix swap dequantize tensor list

Test Plan:
.

Imported from OSS

Differential Revision: D20504456

fbshipit-source-id: 9064d7d598a4310e27e2914a072097526448a02c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants