Skip to content

Commit

Permalink
to revert
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Jan 17, 2025
1 parent cf9a51d commit fd11cd0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion optimum/exporters/tflite/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
if is_tf_available():
import tensorflow as tf


from ..base import ExportersConfig


Expand Down Expand Up @@ -192,7 +193,16 @@ def __init__(
point_batch_size: Optional[int] = None,
nb_points_per_image: Optional[int] = None,
):
super().__init__(config=config, task=task, int_dtype="int64", float_dtype="fp32")


self._config = config
self._normalized_config = self.NORMALIZED_CONFIG_CLASS(self._config)
self.mandatory_axes = ()
self.task = task
self._axes: Dict[str, int] = {}


# super().__init__(config=config, task=task, int_dtype="int64", float_dtype="fp32")

# self.mandatory_axes = ()
# self._axes: Dict[str, int] = {}
Expand Down
2 changes: 1 addition & 1 deletion optimum/exporters/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def get_speecht5_models_for_export(
use_past=use_past,
use_past_in_inputs=False, # Irrelevant here.
behavior=config._behavior, # Irrelevant here.
# preprocessors=config._preprocessors,
preprocessors=config._preprocessors,
is_postnet_and_vocoder=True,
legacy=config.legacy,
)
Expand Down

0 comments on commit fd11cd0

Please sign in to comment.