Skip to content

Commit

Permalink
fix import (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
fxmarty authored Dec 7, 2022
1 parent 8b559db commit d026fdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimum/exporters/onnx/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from transformers import AutoTokenizer

from ...utils import logging
from ...utils.save_utils import maybe_save_tokenizer_or_processor_or_feature_extractor
from ...utils.save_utils import maybe_save_preprocessors
from ..tasks import TasksManager
from .base import OnnxConfigWithPast
from .convert import (
Expand Down Expand Up @@ -144,7 +144,7 @@ def main():
# Saving the model config as this is needed sometimes.
model.config.save_pretrained(args.output.parent)

maybe_save_tokenizer_or_processor_or_feature_extractor(args.model, args.output.parent)
maybe_save_preprocessors(args.model, args.output.parent)

if args.atol is None:
args.atol = onnx_config.ATOL_FOR_VALIDATION
Expand Down

0 comments on commit d026fdc

Please sign in to comment.