Skip to content

Conversation

@jerryzh168
Copy link
Contributor

@jerryzh168 jerryzh168 commented Aug 28, 2019

Stack from ghstack:

Summary:
We want to skip inserting observers for the Tensors that's between the two
ops that will be fused, e.g. Conv -> ReLU, this PR just added this pattern,
but new patterns can be easily added in the future.

Test Plan:
python test test/test_jit.py -- 'TestJit.test_insert_observers_skip_values'
Reviewers:
pt1quant
Subscribers:

Tasks:

Tags:

Differential Revision: D17106037

Summary:
We want to skip inserting observers for the Tensors that's between the two
ops that will be fused, e.g. Conv -> ReLU, this PR just added this pattern,
but new patterns can be easily added in the future.

Test Plan:
python test test/test_jit.py -- 'TestJit.test_insert_observers_skip_values'
Reviewers:
pt1quant
Subscribers:

Tasks:

Tags:
@jerryzh168 jerryzh168 requested a review from apaszke as a code owner August 28, 2019 00:27
@pytorchbot pytorchbot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Aug 28, 2019
jerryzh168 added a commit that referenced this pull request Aug 28, 2019
Summary:
We want to skip inserting observers for the Tensors that's between the two
ops that will be fused, e.g. Conv -> ReLU, this PR just added this pattern,
but new patterns can be easily added in the future.

Test Plan:
python test test/test_jit.py -- 'TestJit.test_insert_observers_skip_values'
Reviewers:
pt1quant
Subscribers:

Tasks:

Tags:

ghstack-source-id: 9492d9f
Pull Request resolved: #25281
…side fused op"

Summary:
We want to skip inserting observers for the Tensors that's between the two
ops that will be fused, e.g. Conv -> ReLU, this PR just added this pattern,
but new patterns can be easily added in the future.

Test Plan:
python test test/test_jit.py -- 'TestJit.test_insert_observers_skip_values'
Reviewers:
pt1quant
Subscribers:

Tasks:

Tags:
…side fused op"

Summary:
We want to skip inserting observers for the Tensors that's between the two
ops that will be fused, e.g. Conv -> ReLU, this PR just added this pattern,
but new patterns can be easily added in the future.

Test Plan:
python test test/test_jit.py -- 'TestJit.test_insert_observers_skip_values'
Reviewers:
pt1quant
Subscribers:

Tasks:

Tags:
…side fused op"

Summary:
We want to skip inserting observers for the Tensors that's between the two
ops that will be fused, e.g. Conv -> ReLU, this PR just added this pattern,
but new patterns can be easily added in the future.

Test Plan:
python test test/test_jit.py -- 'TestJit.test_insert_observers_skip_values'
Reviewers:
pt1quant
Subscribers:

Tasks:

Tags:
…side fused op"

Summary:
We want to skip inserting observers for the Tensors that's between the two
ops that will be fused, e.g. Conv -> ReLU, this PR just added this pattern,
but new patterns can be easily added in the future.

Test Plan:
python test test/test_jit.py -- 'TestJit.test_insert_observers_skip_values'
Reviewers:
pt1quant
Subscribers:

Tasks:

Tags:
…side fused op"

Summary:
We want to skip inserting observers for the Tensors that's between the two
ops that will be fused, e.g. Conv -> ReLU, this PR just added this pattern,
but new patterns can be easily added in the future.

Test Plan:
python test test/test_jit.py -- 'TestJit.test_insert_observers_skip_values'
Reviewers:
pt1quant
Subscribers:

Tasks:

Tags:
jerryzh168 added a commit that referenced this pull request Aug 28, 2019
Summary:
We want to skip inserting observers for the Tensors that's between the two
ops that will be fused, e.g. Conv -> ReLU, this PR just added this pattern,
but new patterns can be easily added in the future.

Test Plan:
python test test/test_jit.py -- 'TestJit.test_insert_observers_skip_values'
Reviewers:
pt1quant
Subscribers:

Tasks:

Tags:

ghstack-source-id: 7a7663d
Pull Request resolved: #25281
Copy link

@ZolotukhinM ZolotukhinM left a comment

Choose a reason for hiding this comment

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

Overall looks good! Please find a couple of remarks inline.

…side fused op"

Summary:
We want to skip inserting observers for the Tensors that's between the two
ops that will be fused, e.g. Conv -> ReLU, this PR just added this pattern,
but new patterns can be easily added in the future.

Test Plan:
python test test/test_jit.py -- 'TestJit.test_insert_observers_skip_values'
Reviewers:
pt1quant
Subscribers:

Tasks:

Tags:
…side fused op"

Summary:
We want to skip inserting observers for the Tensors that's between the two
ops that will be fused, e.g. Conv -> ReLU, this PR just added this pattern,
but new patterns can be easily added in the future.

Test Plan:
python test test/test_jit.py -- 'TestJit.test_insert_observers_skip_values'
Reviewers:
pt1quant
Subscribers:

Tasks:

Tags:

Differential Revision: [D17106037](https://our.internmc.facebook.com/intern/diff/D17106037)
…side fused op"

Summary:
We want to skip inserting observers for the Tensors that's between the two
ops that will be fused, e.g. Conv -> ReLU, this PR just added this pattern,
but new patterns can be easily added in the future.

Test Plan:
python test test/test_jit.py -- 'TestJit.test_insert_observers_skip_values'
Reviewers:
pt1quant
Subscribers:

Tasks:

Tags:

Differential Revision: [D17106037](https://our.internmc.facebook.com/intern/diff/D17106037)
…side fused op"

Summary:
We want to skip inserting observers for the Tensors that's between the two
ops that will be fused, e.g. Conv -> ReLU, this PR just added this pattern,
but new patterns can be easily added in the future.

Test Plan:
python test test/test_jit.py -- 'TestJit.test_insert_observers_skip_values'
Reviewers:
pt1quant
Subscribers:

Tasks:

Tags:

Differential Revision: [D17106037](https://our.internmc.facebook.com/intern/diff/D17106037)
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in f495a3a.

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.

7 participants