Added openvino torch backend import statement in init files (#19208)

* Added openvino torch backend import statement in init files

* Added openvino/torch folder for simplyfing the import

* Removed imports from all the other init.py files

* Fixed flake8 issues

* Removed requirements.txt

* Removed redundant functions
This commit is contained in:
Surya Siddharth Pemmaraju
2023-08-22 03:24:53 -07:00
committed by GitHub
parent 551cb7ab1a
commit acbac2f560
2 changed files with 6 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ log = logging.getLogger(__name__)
We can then use this model for inference. We only need to add two lines of code to
the Pytorch applications which are marked in the code below
1) import openvino.frontend.pytorch.torchdynamo.backend
1) import openvino.torch
model = torchvision.models.resnet50()
2) model = torch.compile(model, backend="openvino")
"""

View File

@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from openvino.frontend.pytorch.torchdynamo import backend