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
77eb7ea7
"examples/git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "a4bc8a86f5fc67ffff77bf1239a829c0af8d2bf2"
Commit
77eb7ea7
authored
Aug 21, 2017
by
Mikhail Korobov
Committed by
Francisco Massa
Aug 21, 2017
Browse files
make flake8 happy (#228)
parent
3ccc1dfd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
torchvision/datasets/mnist.py
torchvision/datasets/mnist.py
+2
-1
No files found.
torchvision/datasets/mnist.py
View file @
77eb7ea7
...
@@ -52,7 +52,8 @@ class MNIST(data.Dataset):
...
@@ -52,7 +52,8 @@ class MNIST(data.Dataset):
self
.
train_data
,
self
.
train_labels
=
torch
.
load
(
self
.
train_data
,
self
.
train_labels
=
torch
.
load
(
os
.
path
.
join
(
self
.
root
,
self
.
processed_folder
,
self
.
training_file
))
os
.
path
.
join
(
self
.
root
,
self
.
processed_folder
,
self
.
training_file
))
else
:
else
:
self
.
test_data
,
self
.
test_labels
=
torch
.
load
(
os
.
path
.
join
(
self
.
root
,
self
.
processed_folder
,
self
.
test_file
))
self
.
test_data
,
self
.
test_labels
=
torch
.
load
(
os
.
path
.
join
(
self
.
root
,
self
.
processed_folder
,
self
.
test_file
))
def
__getitem__
(
self
,
index
):
def
__getitem__
(
self
,
index
):
"""
"""
...
...
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