[quant][graphmode][fix] preserve the type of original value when inserting dequant node#34349
[quant][graphmode][fix] preserve the type of original value when inserting dequant node#34349jerryzh168 wants to merge 30 commits intogh/jerryzh168/241/basefrom
Conversation
…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]
💊 CircleCI build failures summary and remediationsAs of commit cf01f1e (more details on the Dr. CI page): ✅ None of the build failures appear to be your fault 💚
🚧 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)) |
There was a problem hiding this comment.
If this was an issue that needed a fix, suggest having a simple test that checks for the type
There was a problem hiding this comment.
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]
|
This pull request has been merged in 4caa0db. |
…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
…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
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