File tree 3 files changed +5
-10
lines changed
3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 69
69
"""
70
70
71
71
72
- # TODO: Remove
73
72
class ExportConfig (ABC ):
74
- pass
75
-
76
-
77
- class ExportersConfig (ABC ):
78
73
"""
79
74
Base class describing metadata on how to export the model through the ONNX format.
80
75
Original file line number Diff line number Diff line change 47
47
is_onnxruntime_available ,
48
48
is_transformers_version ,
49
49
)
50
- from ..base import ExportersConfig
50
+ from ..base import ExportConfig
51
51
from .constants import ONNX_DECODER_MERGED_NAME , ONNX_DECODER_NAME , ONNX_DECODER_WITH_PAST_NAME
52
52
from .model_patcher import DecoderModelPatcher , Seq2SeqModelPatcher
53
53
100
100
"""
101
101
102
102
103
- class OnnxConfig (ExportersConfig ):
103
+ class OnnxConfig (ExportConfig ):
104
104
DEFAULT_ONNX_OPSET = 11
105
105
VARIANTS = {"default" : "The default ONNX variant." }
106
106
DEFAULT_VARIANT = "default"
107
- # TODO: move PATCHING_SPECS to ExportersConfig
107
+ # TODO: move PATCHING_SPECS to ExportConfig
108
108
PATCHING_SPECS : Optional [List ["PatchingSpec" ]] = None
109
109
_TASK_TO_COMMON_OUTPUTS = {
110
110
"audio-classification" : OrderedDict ({"logits" : {0 : "batch_size" }}),
Original file line number Diff line number Diff line change 27
27
if is_tf_available ():
28
28
import tensorflow as tf
29
29
30
- from ..base import ExportersConfig
30
+ from ..base import ExportConfig
31
31
32
32
33
33
if TYPE_CHECKING :
@@ -115,7 +115,7 @@ def __post_init__(self):
115
115
self .approach = QuantizationApproach (self .approach )
116
116
117
117
118
- class TFLiteConfig (ExportersConfig , ABC ):
118
+ class TFLiteConfig (ExportConfig , ABC ):
119
119
"""
120
120
Base class for TFLite exportable model describing metadata on how to export the model through the TFLite format.
121
121
You can’t perform that action at this time.
0 commit comments