[PT FE]: cleanup unused imports (#18833)

This commit is contained in:
Ekaterina Aidova 2023-07-28 12:03:15 +04:00 committed by GitHub
parent 583939b828
commit 349a0d420f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 10 deletions

View File

@ -9,11 +9,7 @@ from openvino.frontend.pytorch.py_pytorch_frontend import _Type as DecoderType
from openvino.runtime import op, PartialShape, Type as OVType, OVAny, Shape from openvino.runtime import op, PartialShape, Type as OVType, OVAny, Shape
from openvino.frontend.pytorch.utils import maybe_convert_max_int, make_constant, fetch_attr, pt_to_ov_type_map, ov_to_c_type_map from openvino.frontend.pytorch.utils import maybe_convert_max_int, make_constant, fetch_attr, pt_to_ov_type_map, ov_to_c_type_map
import typing
from packaging.version import parse
import torch import torch
import numpy as np
import inspect
import ctypes import ctypes
class TorchFXPythonDecoder (Decoder): class TorchFXPythonDecoder (Decoder):

View File

@ -6,12 +6,11 @@
from openvino.frontend.pytorch.py_pytorch_frontend import _FrontEndPytorchDecoder as Decoder from openvino.frontend.pytorch.py_pytorch_frontend import _FrontEndPytorchDecoder as Decoder
from openvino.frontend.pytorch.py_pytorch_frontend import _Type as DecoderType from openvino.frontend.pytorch.py_pytorch_frontend import _Type as DecoderType
from openvino.runtime import op, PartialShape, Type as OVType, OVAny, Shape, Tensor from openvino.runtime import op, PartialShape, Type as OVType, OVAny
from openvino.frontend.pytorch.utils import ivalue_to_constant, get_value_from_getattr, pt_to_ov_type_map from openvino.frontend.pytorch.utils import ivalue_to_constant, get_value_from_getattr, pt_to_ov_type_map
from openvino.runtime import opset11 as ops from openvino.runtime import opset11 as ops
import typing import typing
from packaging.version import parse
import torch import torch
import numpy as np import numpy as np

View File

@ -5,14 +5,11 @@
# flake8: noqa # flake8: noqa
# mypy: ignore-errors # mypy: ignore-errors
import typing
from packaging.version import parse
import torch import torch
import numpy as np import numpy as np
import inspect
import ctypes import ctypes
from openvino.runtime import op, PartialShape, Type as OVType, OVAny, Shape, Tensor from openvino.runtime import op, Type as OVType, Shape, Tensor
def maybe_convert_max_int(value : int): def maybe_convert_max_int(value : int):