forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pt][quant] Support either min or max in qclamp (pytorch#45937)
Summary: Pull Request resolved: pytorch#45937 torch.clamp can now be used with quantized tensors with either min argument or max argument only Fixes pytorch#45928 ghstack-source-id: 114085914 Test Plan: buck test mode/dev caffe2/test:quantization -- 'test_qclamp' --print-passing-details ``` Started reporting to test run: https://our.intern.facebook.com/intern/testinfra/testrun/4222124686876909 ✓ ListingSuccess: caffe2/test:quantization - main (7.602) ✓ Pass: caffe2/test:quantization - test_qclamp (quantization.test_quantized_op.TestQuantizedOps) (7.233) Summary Pass: 1 ListingSuccess: 1 Finished test run: https://our.intern.facebook.com/intern/testinfra/testrun/4222124686876909 ``` Reviewed By: jerryzh168 Differential Revision: D24153431 fbshipit-source-id: 9735635a48bcdd88d1dd6dc2f18b59311d45ad90
- Loading branch information
1 parent
bed3b40
commit 87a4baf
Showing
5 changed files
with
99 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters