From c7c3663111a1861ceaacbac63699085ba0445060 Mon Sep 17 00:00:00 2001 From: Arthur Zucker Date: Wed, 22 May 2024 07:12:31 +0200 Subject: [PATCH] revert convert as well --- src/transformers/onnx/convert.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/transformers/onnx/convert.py b/src/transformers/onnx/convert.py index fd0de02046fc4c..36cd3232d4ba45 100644 --- a/src/transformers/onnx/convert.py +++ b/src/transformers/onnx/convert.py @@ -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: