Fix warning for MCTC model (#21049)

This commit is contained in:
Sylvain Gugger 2023-01-08 10:55:23 +01:00 committed by GitHub
parent 9a046cc14e
commit d0f324f1e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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."