Skip to content

[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

Closed
wants to merge 4 commits into from

Conversation

jamesr66a
Copy link
Collaborator

@jamesr66a jamesr66a commented Aug 6, 2019

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


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
jamesr66a pushed a commit that referenced this pull request Aug 6, 2019
ghstack-source-id: 6e78fff
Pull Request resolved: #23891
@jamesr66a
Copy link
Collaborator Author

Marking as WIP since i'm adding actual invocation to the tests

@jamesr66a jamesr66a changed the title [quantization] jit.script() testing and fixes [WIP][quantization] jit.script() testing and fixes Aug 7, 2019

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
@jamesr66a jamesr66a changed the title [WIP][quantization] jit.script() testing and fixes [quantization] jit.script() testing and fixes Aug 7, 2019
@jamesr66a jamesr66a requested a review from ZolotukhinM August 7, 2019 19:59
Copy link

@z-a-f z-a-f left a 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):
Copy link

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)
@jamesr66a
Copy link
Collaborator Author

Updated per @raghuramank100's suggestion. @zafartahirov @raghuramank100 PTAL

@zou3519 zou3519 deleted the gh/jamesr66a/37/head branch August 8, 2019 19:09
@facebook-github-bot
Copy link
Contributor

@jamesr66a merged this pull request in a35d290.

@facebook-github-bot
Copy link
Contributor

@jamesr66a merged this pull request in a35d290.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merged module: nn Related to torch.nn
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants