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
0811db01
Commit
0811db01
authored
Jun 07, 2023
by
panning
Browse files
update dcu_version
parent
afdca1a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
torchvision/__init__.py
torchvision/__init__.py
+4
-1
No files found.
torchvision/__init__.py
View file @
0811db01
...
@@ -16,7 +16,10 @@ try:
...
@@ -16,7 +16,10 @@ try:
from
.version
import
__version__
# noqa: F401
from
.version
import
__version__
# noqa: F401
except
ImportError
:
except
ImportError
:
pass
pass
try
:
from
.version
import
__dcu_version__
# noqa: F401
except
ImportError
:
pass
# Check if torchvision is being imported within the root folder
# Check if torchvision is being imported within the root folder
if
(
not
_HAS_OPS
and
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
==
if
(
not
_HAS_OPS
and
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
==
os
.
path
.
join
(
os
.
path
.
realpath
(
os
.
getcwd
()),
'torchvision'
)):
os
.
path
.
join
(
os
.
path
.
realpath
(
os
.
getcwd
()),
'torchvision'
)):
...
...
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