Skip to content

Conversation

z-a-f
Copy link

@z-a-f z-a-f commented Apr 19, 2019

Stack:
    :black_circle:  #19500 Use fbgemm for quantize/dequantize ops  💚

Changes the quantize_linear and dequantize to fbgemm-based implementation.

Differential Revision: D15014561

zaf added 3 commits April 19, 2019 10:47
Differential Revision: D15014561
Differential Version: 80114220
Differential Revision: D15014561
Differential Version: 80202432
Differential Revision: D15014561
Differential Version: 80202583
tensor.options().dtype(at::kQInt8),
intrusive_from_this());
auto qvd = qv.data<qint8>();
tensor.contiguous();
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice catch. Would be good to have a test for this case.

@ezyang
Copy link
Contributor

ezyang commented Apr 22, 2019

Change looks fine to me. Resigning in favor of other reviewers.

@ezyang
Copy link
Contributor

ezyang commented Apr 22, 2019

Is FBGEMM codepath being exercised in CI? What about the non-FBGEMM codepath?

Differential Revision: D15014561
Differential Version: 80387485
@z-a-f
Copy link
Author

z-a-f commented Apr 22, 2019

Is FBGEMM codepath being exercised in CI? What about the non-FBGEMM codepath?

I am not sure if CI sets the USE_FBGEMM flag. Ideally it should -- in case there are any OSS tests that might fail.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 3cc60e5.

zdevito pushed a commit to zdevito/ATen that referenced this pull request Apr 23, 2019
Summary:
Pull Request resolved: pytorch/pytorch#19500

Changes the `quantize_linear` and `dequantize` to `fbgemm`-based implementation.

Reviewed By: jianyuh, jerryzh168

Differential Revision: D15014561

fbshipit-source-id: b651e69d336b5b08b4a75a4a4eddf46c040a4934
zhangguanheng66 pushed a commit to zhangguanheng66/pytorch that referenced this pull request May 6, 2019
Summary:
Pull Request resolved: pytorch#19500

Changes the `quantize_linear` and `dequantize` to `fbgemm`-based implementation.

Reviewed By: jianyuh, jerryzh168

Differential Revision: D15014561

fbshipit-source-id: b651e69d336b5b08b4a75a4a4eddf46c040a4934
@ezyang ezyang deleted the export-D15014561 branch May 30, 2019 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants