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
d95a32cc
Unverified
Commit
d95a32cc
authored
Jul 22, 2022
by
Yih-Dar
Committed by
GitHub
Jul 22, 2022
Browse files
Fix torch version check in Vilt (#18260)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
7cb4da13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/vilt/modeling_vilt.py
src/transformers/models/vilt/modeling_vilt.py
+1
-1
No files found.
src/transformers/models/vilt/modeling_vilt.py
View file @
d95a32cc
...
...
@@ -41,7 +41,7 @@ from .configuration_vilt import ViltConfig
logger
=
logging
.
get_logger
(
__name__
)
if
torch
.
__version__
<
(
1
,
10
,
0
):
if
version
.
parse
(
torch
.
__version__
)
<
version
.
parse
(
"1.10.0"
):
logger
.
warning
(
f
"You are using torch==
{
torch
.
__version__
}
, but torch>=1.10.0 is required to use "
"ViltModel. 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