Skip to content

Conversation

jerryzh168
Copy link
Contributor

@jerryzh168 jerryzh168 commented Jun 5, 2020

Stack from ghstack:

Summary:
This is to prepare for next PR that fixes propagate dequantize for ops with multiple outputs

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: D21942063

Summary:
This is to prepare for next PR that fixes propagate dequantize for ops with multiple outputs

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
Summary:
This is to prepare for next PR that fixes propagate dequantize for ops with multiple outputs

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@dr-ci
Copy link

dr-ci bot commented Jun 5, 2020

💊 CI failures summary and remediations

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


💚 💚 Looks good so far! There are no failures yet. 💚 💚


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 or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 31 times.

Summary:
This is to prepare for next PR that fixes propagate dequantize for ops with multiple outputs

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
Summary:
This is to prepare for next PR that fixes propagate dequantize for ops with multiple outputs

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
Summary:
This is to prepare for next PR that fixes propagate dequantize for ops with multiple outputs

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
Summary:
This is to prepare for next PR that fixes propagate dequantize for ops with multiple outputs

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
void propagateDequantize(Value* output, const std::vector<Value*> inputs) {
Node* n = output->node();
Graph* graph = n->owningGraph();
void removeDequantizeFromInputs(const std::vector<Value*>& inputs) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a test showing the functionality here before you land?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is a refactor, not a new functionality, it's already tested in test_quantize_script.py

@jerryzh168 jerryzh168 requested a review from raghuramank100 June 8, 2020 18:43
Summary:
This is to prepare for next PR that fixes propagate dequantize for ops with multiple outputs

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
for (auto* input : inputs) {
is_dequantized &= input->node()->kind() == Symbol::aten("dequantize");
if (isSingleInputGeneralValueAtenFunction(n)) {
for (auto* output : n->outputs()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this for loop inside the if, else statements? Can it be moved outside?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, this refactor is preparing for next PR, where we do things differently for the else branch

@jerryzh168 jerryzh168 requested a review from supriyar June 9, 2020 00:09
Copy link
Contributor

@supriyar supriyar left a comment

Choose a reason for hiding this comment

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

LG

Summary:
This is to prepare for next PR that fixes propagate dequantize for ops with multiple outputs

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

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

This pull request has been merged in c902146.

@facebook-github-bot facebook-github-bot deleted the gh/jerryzh168/334/head branch June 13, 2020 14:16
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