forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PT FE] Support conversion of TorchScript and ExportedProgram from di…
…sk (openvinotoolkit#26877) **Details:** Support conversion of TorchScript and ExportedProgram from disk. Examples: Let us have ExportedProgram `exported_model.pt2` model saved on disk. ```sh ovc exported_model.pt2 ``` **Note:** TorchScript model from disk is not converted using `ovc` since `input` option does not accept input types. ```python from openvino import convert_model import torch convert_model(input_model='torch_scripted_model.pt', example_input=torch.rand(1, 10)) convert_model(input_model='exported_model.pt2') ``` **Ticket:** 103215 --------- Signed-off-by: Kazantsev, Roman <[email protected]>
- Loading branch information
Showing
6 changed files
with
291 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.