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
OpenDAS
vision
Commits
a7b52a68
Unverified
Commit
a7b52a68
authored
Aug 17, 2023
by
Nicolas Hug
Committed by
GitHub
Aug 17, 2023
Browse files
Don't error on cuda minor version mismatch (#7726)
parent
41f9c1e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torchvision/extension.py
torchvision/extension.py
+2
-2
No files found.
torchvision/extension.py
View file @
a7b52a68
...
@@ -74,9 +74,9 @@ def _check_cuda_version():
...
@@ -74,9 +74,9 @@ def _check_cuda_version():
t_version
=
torch_version_cuda
.
split
(
"."
)
t_version
=
torch_version_cuda
.
split
(
"."
)
t_major
=
int
(
t_version
[
0
])
t_major
=
int
(
t_version
[
0
])
t_minor
=
int
(
t_version
[
1
])
t_minor
=
int
(
t_version
[
1
])
if
t_major
!=
tv_major
or
t_minor
!=
tv_minor
:
if
t_major
!=
tv_major
:
raise
RuntimeError
(
raise
RuntimeError
(
"Detected that PyTorch and torchvision were compiled with different CUDA versions. "
"Detected that PyTorch and torchvision were compiled with different CUDA
major
versions. "
f
"PyTorch has CUDA Version=
{
t_major
}
.
{
t_minor
}
and torchvision has "
f
"PyTorch has CUDA Version=
{
t_major
}
.
{
t_minor
}
and torchvision has "
f
"CUDA Version=
{
tv_major
}
.
{
tv_minor
}
. "
f
"CUDA Version=
{
tv_major
}
.
{
tv_minor
}
. "
"Please reinstall the torchvision that matches your PyTorch install."
"Please reinstall the torchvision that matches your PyTorch install."
...
...
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