Skip to content

Conversation

supriyar
Copy link
Contributor

@supriyar supriyar commented Oct 7, 2020

Stack from ghstack:

Summary:
The current sparse field using in the float module is for sparse gradients, which is not applicable
to inference. The sparse field in the quantizd ops denotes pruned weights.

Test Plan:
python test/test_quantization.py TestQuantizeDynamicJitOps.test_embedding_bag

Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: D24176543

Summary:
The current sparse field using in the float module is for sparse gradients, which is not applicable
to inference. The sparse field in the quantizd ops denotes pruned weights.

Test Plan:
python test/test_quantization.py TestQuantizeDynamicJitOps.test_embedding_bag

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@supriyar supriyar requested a review from apaszke as a code owner October 7, 2020 21:56
supriyar added a commit that referenced this pull request Oct 7, 2020
Summary:
The current sparse field using in the float module is for sparse gradients, which is not applicable
to inference. The sparse field in the quantizd ops denotes pruned weights.

Test Plan:
python test/test_quantization.py TestQuantizeDynamicJitOps.test_embedding_bag

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 221161b
Pull Request resolved: #45997
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Oct 7, 2020
@supriyar supriyar changed the title [quant] Set sparse to False for embedding_bag ops in graph mode [quant][pyper] Set sparse to False for embedding_bag ops in graph mode Oct 7, 2020
…n graph mode"

Summary:
The current sparse field using in the float module is for sparse gradients, which is not applicable
to inference. The sparse field in the quantizd ops denotes pruned weights.

Test Plan:
python test/test_quantization.py TestQuantizeDynamicJitOps.test_embedding_bag

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
@codecov
Copy link

codecov bot commented Oct 8, 2020

Codecov Report

Merging #45997 into gh/supriyar/195/base will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@                  Coverage Diff                  @@
##           gh/supriyar/195/base   #45997   +/-   ##
=====================================================
  Coverage                 68.28%   68.28%           
=====================================================
  Files                       410      410           
  Lines                     53306    53306           
=====================================================
  Hits                      36398    36398           
  Misses                    16908    16908           

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 7d4f506...262e9bf. Read the comment docs.

…n graph mode"

Summary:
The current sparse field using in the float module is for sparse gradients, which is not applicable
to inference. The sparse field in the quantizd ops denotes pruned weights.

Test Plan:
python test/test_quantization.py TestQuantizeDynamicJitOps.test_embedding_bag

Reviewers:

Subscribers:

Tasks:

Tags:

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

[ghstack-poisoned]
for (auto i = 1; i < inputs_size - 1; ++i) {
qembedding_bag_inputs.push_back(embedding_bag_inputs[i]);
}
// Set the sparse field to 0 for inference.
Copy link
Contributor

Choose a reason for hiding this comment

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

optional: should we mention that this is for sparse gradients (as the pr summary reads), just to make it clear on why?

…n graph mode"

Summary:
The current sparse field using in the float module is for sparse gradients, which is not applicable
to inference. The sparse field in the quantizd ops denotes pruned weights.

Test Plan:
python test/test_quantization.py TestQuantizeDynamicJitOps.test_embedding_bag

Reviewers:

Subscribers:

Tasks:

Tags:

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

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

This pull request has been merged in 8c80ee8.

@facebook-github-bot facebook-github-bot deleted the gh/supriyar/195/head branch October 12, 2020 14:17
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.

3 participants