Closed raedle closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
playtorch | ✅ Ready (Inspect) | Visit Preview | Nov 4, 2022 at 11:31PM (UTC) |
@raedle has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@raedle has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@raedle has updated the pull request. You must reimport the pull request before landing.
@raedle has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
This pull request was exported from Phabricator. Differential Revision: D41017647
This pull request was exported from Phabricator. Differential Revision: D41017647
This pull request was exported from Phabricator. Differential Revision: D41017647
Summary
The PlayTorch API for
torch.jit._loadForMobile
did not support arguments for torch device and extra files. This change updates thetorch.jit._loadForMobile
API to also allow for both parameters. The extra files are useful to store additional data with the model (e.g., store image classes for inference alongside the model).Changelog
torch.jit._loadForMobile
andtorch.jit._loadForMobileSync
(latter is the same but synchronous API).Test Plan
Example:
Output: