Skip to content

[quant][graphmode][fx] Separate handling Copy operator to a helper function#54644

Closed
jerryzh168 wants to merge 19 commits intogh/jerryzh168/573/basefrom
gh/jerryzh168/573/head
Closed

[quant][graphmode][fx] Separate handling Copy operator to a helper function#54644
jerryzh168 wants to merge 19 commits intogh/jerryzh168/573/basefrom
gh/jerryzh168/573/head

Conversation

@jerryzh168
Copy link
Copy Markdown
Contributor

@jerryzh168 jerryzh168 commented Mar 25, 2021

Stack from ghstack:

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: D27314678

…nction

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

facebook-github-bot commented Mar 25, 2021

💊 CI failures summary and remediations

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


  • 1/1 failures possibly* introduced in this PR
    • 1/1 non-scanned failure(s)

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

…a helper function"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
…a helper function"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
…a helper function"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Mar 25, 2021
…nction

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: ccccaca
Pull Request resolved: #54644
Comment thread torch/quantization/fx/quantize.py
Comment thread torch/quantization/fx/utils.py
Comment thread torch/quantization/fx/quantize.py Outdated
…a helper function"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Mar 25, 2021
…nction

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 2bb5658
Pull Request resolved: #54644
…a helper function"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
…a helper function"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
…a helper function"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
…a helper function"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
…a helper function"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
…a helper function"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
…a helper function"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
…a helper function"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
…a helper function"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
…a helper function"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
…a helper function"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
…a helper function"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

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

This pull request has been merged in c57541c.

@facebook-github-bot facebook-github-bot deleted the gh/jerryzh168/573/head branch April 4, 2021 14:17
jerryzh168 added a commit that referenced this pull request Apr 6, 2021
…nction (#54644)

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan: Imported from OSS

Reviewed By: vkuzo

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Apr 6, 2021
…nction (#54644)

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan: Imported from OSS

Reviewed By: vkuzo

ghstack-source-id: 48f3ea0
Pull Request resolved: #55429
jerryzh168 added a commit that referenced this pull request Apr 7, 2021
…opy operator to a helper function (#54644)"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan: Imported from OSS

Reviewed By: vkuzo

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

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Apr 7, 2021
…a helper function (#54644)"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan: Imported from OSS

Reviewed By: vkuzo

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

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Apr 7, 2021
…opy operator to a helper function (#54644)"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan: Imported from OSS

Reviewed By: vkuzo

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

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Apr 7, 2021
…a helper function (#54644)"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan: Imported from OSS

Reviewed By: vkuzo

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

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Apr 7, 2021
…opy operator to a helper function (#54644)"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan: Imported from OSS

Reviewed By: vkuzo

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

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Apr 7, 2021
…a helper function (#54644)"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan: Imported from OSS

Reviewed By: vkuzo

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

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Apr 8, 2021
…opy operator to a helper function (#54644)"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan: Imported from OSS

Reviewed By: vkuzo

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

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Apr 8, 2021
…a helper function (#54644)"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan: Imported from OSS

Reviewed By: vkuzo

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

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Apr 8, 2021
…opy operator to a helper function (#54644)"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan: Imported from OSS

Reviewed By: vkuzo

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

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Apr 8, 2021
…a helper function (#54644)"

Summary:
Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan: Imported from OSS

Reviewed By: vkuzo

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

[ghstack-poisoned]
facebook-github-bot pushed a commit that referenced this pull request Apr 9, 2021
…nction (#54644) (#55429)

Summary:
Pull Request resolved: #55429

Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:
Imported from OSS

Imported from OSS

Reviewed By: vkuzo

Differential Revision: D27609972

fbshipit-source-id: 378f6aa70f18c0b477b62b6efe236648748aae7e
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
…nction (pytorch#54644)

Summary:
Pull Request resolved: pytorch#54644

Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan: Imported from OSS

Reviewed By: vkuzo

Differential Revision: D27314678

fbshipit-source-id: d36870ceb3717bc01eaeaa6f3f1532ad562cbaf1
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
…nction (pytorch#54644) (pytorch#55429)

Summary:
Pull Request resolved: pytorch#55429

Previously we special case copy operator in normal insert observer code, this PR tries to split the
special case logic to a separate function and keep the rest of the code clean.

Test Plan:
Imported from OSS

Imported from OSS

Reviewed By: vkuzo

Differential Revision: D27609972

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants