Added openvino/torch folder for simplyfing the import (#19281)

This commit is contained in:
Surya Siddharth Pemmaraju
2023-08-22 03:24:16 -07:00
committed by GitHub
parent b35ae397b7
commit e2d39fec68
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