From 0cc167d7eacd615a9a60b35bed9cd202d75f17eb Mon Sep 17 00:00:00 2001 From: Ella Charlaix Date: Fri, 13 Sep 2024 16:46:18 +0200 Subject: [PATCH] style --- optimum/exporters/onnx/convert.py | 2 +- optimum/onnxruntime/modeling_decoder.py | 1 - optimum/onnxruntime/modeling_seq2seq.py | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/optimum/exporters/onnx/convert.py b/optimum/exporters/onnx/convert.py index e5a912b18e8..7142d5be4a4 100644 --- a/optimum/exporters/onnx/convert.py +++ b/optimum/exporters/onnx/convert.py @@ -34,11 +34,11 @@ DEFAULT_DUMMY_SHAPES, ONNX_WEIGHTS_NAME, TORCH_MINIMUM_VERSION, + check_if_transformers_greater, is_diffusers_available, is_torch_onnx_support_available, logging, require_numpy_strictly_lower, - check_if_transformers_greater, ) from ...utils.modeling_utils import MODEL_TO_PATCH_FOR_PAST from ...utils.save_utils import maybe_save_preprocessors diff --git a/optimum/onnxruntime/modeling_decoder.py b/optimum/onnxruntime/modeling_decoder.py index 35417ba60f3..239eaee5f3a 100644 --- a/optimum/onnxruntime/modeling_decoder.py +++ b/optimum/onnxruntime/modeling_decoder.py @@ -14,7 +14,6 @@ """Classes handling causal-lm related architectures in ONNX Runtime.""" import logging -import warnings from pathlib import Path from tempfile import TemporaryDirectory from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Union diff --git a/optimum/onnxruntime/modeling_seq2seq.py b/optimum/onnxruntime/modeling_seq2seq.py index 46a6609b81c..3c0a7f4b061 100644 --- a/optimum/onnxruntime/modeling_seq2seq.py +++ b/optimum/onnxruntime/modeling_seq2seq.py @@ -18,7 +18,6 @@ import logging import shutil -import warnings from abc import ABC, abstractmethod from pathlib import Path from tempfile import TemporaryDirectory