-
Notifications
You must be signed in to change notification settings - Fork 24.4k
[quantization] jit.script() testing and fixes #23891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This adds an initial set of testing coverage for quantization that checks if the modules can be scripted. Testing for tracing and serialization is forthcoming
Marking as WIP since i'm adding actual invocation to the tests |
This adds an initial set of testing coverage for quantization that checks if the modules can be scripted. Testing for tracing and serialization is forthcoming
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -33,7 +34,7 @@ def test_relu_api(self): | |||
self.assertEqual(qY, qY_hat) | |||
|
|||
|
|||
class ModuleAPITest(TestCase): | |||
class ModuleAPITest(QuantizationTestCase): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably move the scriptability tests into their own test class. Maybe into ScriptabilityTests
.
This adds an initial set of testing coverage for quantization that checks if the modules can be scripted. Testing for tracing and serialization is forthcoming Differential Revision: [D16698045](https://our.internmc.facebook.com/intern/diff/D16698045)
Updated per @raghuramank100's suggestion. @zafartahirov @raghuramank100 PTAL |
@jamesr66a merged this pull request in a35d290. |
@jamesr66a merged this pull request in a35d290. |
Stack from ghstack:
This adds an initial set of testing coverage for quantization that checks if the modules can be scripted. Testing for tracing and serialization is forthcoming
Differential Revision: D16698045