Skip to content

Commit

Permalink
revert convert as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed May 22, 2024
1 parent e917fea commit c7c3663
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/transformers/onnx/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,10 @@ def export_tensorflow(
`Tuple[List[str], List[str]]`: A tuple with an ordered list of the model's inputs, and the named inputs from
the ONNX configuration.
"""
import onnx
import tensorflow as tf
import tf2onnx

import onnx

if isinstance(preprocessor, PreTrainedTokenizerBase) and tokenizer is not None:
raise ValueError("You cannot provide both a tokenizer and preprocessor to export the model.")
if tokenizer is not None:
Expand Down

0 comments on commit c7c3663

Please sign in to comment.