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
d0c92dc9
"...text-generation-inference.git" did not exist on "5489406c4a06780c23357880588f807a5f2f52e7"
Unverified
Commit
d0c92dc9
authored
Apr 05, 2022
by
Philip Meier
Committed by
GitHub
Apr 05, 2022
Browse files
fix missing torchdata error message (#5738)
parent
c6c9ab98
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
torchvision/prototype/datasets/__init__.py
torchvision/prototype/datasets/__init__.py
+3
-4
No files found.
torchvision/prototype/datasets/__init__.py
View file @
d0c92dc9
try
:
try
:
import
torchdata
import
torchdata
except
(
ModuleNotFoundError
,
TypeError
)
as
error
:
except
ModuleNotFoundError
:
raise
ModuleNotFoundError
(
raise
ModuleNotFoundError
(
"`torchvision.prototype.datasets` depends on PyTorch's `torchdata` (https://github.com/pytorch/data). "
"`torchvision.prototype.datasets` depends on PyTorch's `torchdata` (https://github.com/pytorch/data). "
"You can install it with `pip install git+https://github.com/pytorch/data.git`. "
"You can install it with `pip install --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu"
"Note that you cannot install it with `pip install torchdata`, since this is another package."
)
from
None
)
from
error
from
.
import
utils
from
.
import
utils
from
._home
import
home
from
._home
import
home
...
...
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