mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-01 18:51:14 +06:00
Fix warning for MCTC model (#21049)
This commit is contained in:
parent
9a046cc14e
commit
d0f324f1e1
@ -40,7 +40,7 @@ from .configuration_mctct import MCTCTConfig
|
|||||||
|
|
||||||
logger = logging.get_logger(__name__)
|
logger = logging.get_logger(__name__)
|
||||||
|
|
||||||
if not is_torch_less_than_1_9:
|
if is_torch_less_than_1_9:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
f"You are using torch=={torch.__version__}, but torch>=1.9.0 is required to use MCTCTModel. Please upgrade"
|
f"You are using torch=={torch.__version__}, but torch>=1.9.0 is required to use MCTCTModel. Please upgrade"
|
||||||
" torch."
|
" torch."
|
||||||
|
Loading…
Reference in New Issue
Block a user