Skip to content

Commit 65ad611

Browse files
committed
rename
1 parent 7a3f338 commit 65ad611

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

optimum/exporters/base.py

-5
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,7 @@
6969
"""
7070

7171

72-
# TODO: Remove
7372
class ExportConfig(ABC):
74-
pass
75-
76-
77-
class ExportersConfig(ABC):
7873
"""
7974
Base class describing metadata on how to export the model through the ONNX format.
8075

optimum/exporters/onnx/base.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
is_onnxruntime_available,
4848
is_transformers_version,
4949
)
50-
from ..base import ExportersConfig
50+
from ..base import ExportConfig
5151
from .constants import ONNX_DECODER_MERGED_NAME, ONNX_DECODER_NAME, ONNX_DECODER_WITH_PAST_NAME
5252
from .model_patcher import DecoderModelPatcher, Seq2SeqModelPatcher
5353

@@ -100,11 +100,11 @@
100100
"""
101101

102102

103-
class OnnxConfig(ExportersConfig):
103+
class OnnxConfig(ExportConfig):
104104
DEFAULT_ONNX_OPSET = 11
105105
VARIANTS = {"default": "The default ONNX variant."}
106106
DEFAULT_VARIANT = "default"
107-
# TODO: move PATCHING_SPECS to ExportersConfig
107+
# TODO: move PATCHING_SPECS to ExportConfig
108108
PATCHING_SPECS: Optional[List["PatchingSpec"]] = None
109109
_TASK_TO_COMMON_OUTPUTS = {
110110
"audio-classification": OrderedDict({"logits": {0: "batch_size"}}),

optimum/exporters/tflite/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
if is_tf_available():
2828
import tensorflow as tf
2929

30-
from ..base import ExportersConfig
30+
from ..base import ExportConfig
3131

3232

3333
if TYPE_CHECKING:
@@ -115,7 +115,7 @@ def __post_init__(self):
115115
self.approach = QuantizationApproach(self.approach)
116116

117117

118-
class TFLiteConfig(ExportersConfig, ABC):
118+
class TFLiteConfig(ExportConfig, ABC):
119119
"""
120120
Base class for TFLite exportable model describing metadata on how to export the model through the TFLite format.
121121

0 commit comments

Comments
 (0)