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
a839642c
Unverified
Commit
a839642c
authored
Jun 06, 2024
by
Nicolas Hug
Committed by
GitHub
Jun 06, 2024
Browse files
Load _C ops before registering meta implementations (#8470)
parent
bcf6cda1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
torchvision/__init__.py
torchvision/__init__.py
+4
-2
No files found.
torchvision/__init__.py
View file @
a839642c
...
...
@@ -3,9 +3,11 @@ import warnings
from
modulefinder
import
Module
import
torch
from
torchvision
import
_meta_registrations
,
datasets
,
io
,
models
,
ops
,
transforms
,
utils
from
.extension
import
_HAS_OPS
# Don't re-order these, we need to load the _C extension (done when importing
# .extensions) before entering _meta_registrations.
from
.extension
import
_HAS_OPS
# usort:skip
from
torchvision
import
_meta_registrations
,
datasets
,
io
,
models
,
ops
,
transforms
,
utils
# usort:skip
try
:
from
.version
import
__version__
# noqa: F401
...
...
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