Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[quant][graphmode][fx] Add warning for unsupported case #45714

Closed
wants to merge 5 commits into from

Conversation

jerryzh168
Copy link
Contributor

@jerryzh168 jerryzh168 commented Oct 2, 2020

Stack from ghstack:

Summary:
Hit the problem when writing a test like following:

class M(...):
      def forward(self, x):
          x = x.some_op()
          return x

we need to know the scope of x to figure out the qconfig for x

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: D24069959

Summary:
Hit the problem when writing a test like following:
```
class M(...):
      def forward(self, x):
          x = x.some_op()
          return x
```
we need to know the scope of `x` to figure out the qconfig for `x`

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
Summary:
Hit the problem when writing a test like following:
```
class M(...):
      def forward(self, x):
          x = x.some_op()
          return x
```
we need to know the scope of `x` to figure out the qconfig for `x`

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Oct 2, 2020
Summary:
Hit the problem when writing a test like following:
```
class M(...):
      def forward(self, x):
          x = x.some_op()
          return x
```
we need to know the scope of `x` to figure out the qconfig for `x`

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 20bb60fa4a8a016a5558ad0c3d6b828a5d607ccf
Pull Request resolved: #45714
Summary:
Hit the problem when writing a test like following:
```
class M(...):
      def forward(self, x):
          x = x.some_op()
          return x
```
we need to know the scope of `x` to figure out the qconfig for `x`

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Oct 5, 2020
Summary:
Hit the problem when writing a test like following:
```
class M(...):
      def forward(self, x):
          x = x.some_op()
          return x
```
we need to know the scope of `x` to figure out the qconfig for `x`

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 3d3fe552470707374782ba89272d7d4473d1df13
Pull Request resolved: #45714
Copy link
Contributor

@z-a-f z-a-f left a comment

Choose a reason for hiding this comment

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

Is there something like warn_once or torch.warn for filtering?

@codecov
Copy link

codecov bot commented Oct 5, 2020

Codecov Report

Merging #45714 into gh/jerryzh168/451/base will decrease coverage by 0.00%.
The diff coverage is 66.66%.

Impacted file tree graph

@@                    Coverage Diff                     @@
##           gh/jerryzh168/451/base   #45714      +/-   ##
==========================================================
- Coverage                   68.33%   68.33%   -0.01%     
==========================================================
  Files                         410      410              
  Lines                       52992    52997       +5     
==========================================================
+ Hits                        36210    36213       +3     
- Misses                      16782    16784       +2     
Impacted Files Coverage Δ
torch/quantization/fx/quantize.py 96.42% <66.66%> (-0.37%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 37541fd...53ace46. Read the comment docs.

Summary:
Hit the problem when writing a test like following:
```
class M(...):
      def forward(self, x):
          x = x.some_op()
          return x
```
we need to know the scope of `x` to figure out the qconfig for `x`

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
Summary:
Hit the problem when writing a test like following:
```
class M(...):
      def forward(self, x):
          x = x.some_op()
          return x
```
we need to know the scope of `x` to figure out the qconfig for `x`

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

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

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

This pull request has been merged in 14997f2.

@facebook-github-bot facebook-github-bot deleted the gh/jerryzh168/451/head branch October 10, 2020 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants