"tests/models/auto/test_tokenization_auto.py" did not exist on "95792a948e68b8dc89a68bb9cc5bb7fc0a8a3e9c"
Unverified Commit d0f324f1 authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Fix warning for MCTC model (#21049)

parent 9a046cc1
......@@ -40,7 +40,7 @@ from .configuration_mctct import MCTCTConfig
logger = logging.get_logger(__name__)
if not is_torch_less_than_1_9:
if is_torch_less_than_1_9:
logger.warning(
f"You are using torch=={torch.__version__}, but torch>=1.9.0 is required to use MCTCTModel. Please upgrade"
" torch."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment