Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
d0f324f1
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "a75c64d80c76c3dc71f735d9197a4a601847e0cd"
Unverified
Commit
d0f324f1
authored
Jan 08, 2023
by
Sylvain Gugger
Committed by
GitHub
Jan 08, 2023
Browse files
Fix warning for MCTC model (#21049)
parent
9a046cc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/mctct/modeling_mctct.py
src/transformers/models/mctct/modeling_mctct.py
+1
-1
No files found.
src/transformers/models/mctct/modeling_mctct.py
View file @
d0f324f1
...
...
@@ -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."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment