[PT FE]: cleanup unused imports (#18833)
This commit is contained in:
parent
583939b828
commit
349a0d420f
@ -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):
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user