quantized hardsigmoid, take 2#34959
Conversation
Summary: Adds quantized implementation of hardsigmoid. Original PR was #34607 and had to be reverted for a test breakage, trying again. Test Plan: tests benchmarks Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
💊 CircleCI build failures summary and remediationsAs of commit 7082381 (more details on the Dr. CI page): ✅ None of the build failures appear to be your fault 💚
❄️ 2 tentatively flaky failures2 failures tentatively classified as flaky but have not triggered reruns to confirm:
|
Summary: Adds quantized implementation of hardsigmoid. Original PR was #34607 and had to be reverted for a test breakage, trying again. Test Plan: tests benchmarks Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D20514212](https://our.internmc.facebook.com/intern/diff/D20514212) [ghstack-poisoned]
Summary: Adds quantized implementation of hardsigmoid. Original PR was #34607 and had to be reverted for a test breakage, trying again. Test Plan: tests benchmarks Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D20514212](https://our.internmc.facebook.com/intern/diff/D20514212) [ghstack-poisoned]
| def hardsigmoid(input): | ||
| # type: (Tensor) -> Tensor | ||
| r""" | ||
| Applies the quantized element-wise function :math:`\text{Hardsigmoid}(x) = \frac{ReLU6(x + 3)}{6}` |
There was a problem hiding this comment.
Please, change the math documentation to the cases -- using ReLU6 in the math description is not very easy to understand. In addition to that we don't want to expose the implementation :)
|
This pull request has been merged in 37b234a. |
Summary: I missed this in #34959 after a rebase, fixing. Test Plan: running benchmarks no longer crashes CI Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
Summary: Pull Request resolved: pytorch#34959 Adds quantized implementation of hardsigmoid. Original PR was pytorch#34607 and had to be reverted for a test breakage, trying again. Test Plan: tests benchmarks Imported from OSS Differential Revision: D20514212 fbshipit-source-id: cc7ae3b67757e2dde5c313c05ce60a0f2625d961
Summary: Pull Request resolved: pytorch#35104 I missed this in pytorch#34959 after a rebase, fixing. Test Plan: running benchmarks no longer crashes CI Imported from OSS Differential Revision: D20560908 fbshipit-source-id: a5494e23953d3c9007e9874d673896291b5322e0
Stack from ghstack:
Summary:
Adds quantized implementation of hardsigmoid.
Original PR was #34607 and had to
be reverted for a test breakage, trying again.
Test Plan:
tests
benchmarks
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D20514212