Created
November 12, 2021 19:27
-
-
Save dhruvbird/d8a04bddb70422202a2eb25f17c916df to your computer and use it in GitHub Desktop.
Optimize scripted model for mobile inference
This file contains hidden or 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
from torch.utils.mobile_optimizer import optimize_for_mobile | |
optimized_model = optimize_for_mobile(scripted) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment