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
7a0184aa
Unverified
Commit
7a0184aa
authored
Aug 26, 2021
by
Vasilis Vryniotis
Committed by
GitHub
Aug 26, 2021
Browse files
[FBcode->GH] Moving logging on base class. (#4319)
parent
32f95c77
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
2 deletions
+1
-2
torchvision/datasets/cifar.py
torchvision/datasets/cifar.py
+0
-1
torchvision/datasets/mnist.py
torchvision/datasets/mnist.py
+0
-1
torchvision/datasets/vision.py
torchvision/datasets/vision.py
+1
-0
No files found.
torchvision/datasets/cifar.py
View file @
7a0184aa
...
...
@@ -59,7 +59,6 @@ class CIFAR10(VisionDataset):
super
(
CIFAR10
,
self
).
__init__
(
root
,
transform
=
transform
,
target_transform
=
target_transform
)
torch
.
_C
.
_log_api_usage_once
(
f
"torchvision.datasets.
{
self
.
__class__
.
__name__
}
"
)
self
.
train
=
train
# training set or test set
...
...
torchvision/datasets/mnist.py
View file @
7a0184aa
...
...
@@ -77,7 +77,6 @@ class MNIST(VisionDataset):
)
->
None
:
super
(
MNIST
,
self
).
__init__
(
root
,
transform
=
transform
,
target_transform
=
target_transform
)
torch
.
_C
.
_log_api_usage_once
(
f
"torchvision.datasets.
{
self
.
__class__
.
__name__
}
"
)
self
.
train
=
train
# training set or test set
if
self
.
_check_legacy_exist
():
...
...
torchvision/datasets/vision.py
View file @
7a0184aa
...
...
@@ -31,6 +31,7 @@ class VisionDataset(data.Dataset):
transform
:
Optional
[
Callable
]
=
None
,
target_transform
:
Optional
[
Callable
]
=
None
,
)
->
None
:
torch
.
_C
.
_log_api_usage_once
(
f
"torchvision.datasets.
{
self
.
__class__
.
__name__
}
"
)
if
isinstance
(
root
,
torch
.
_six
.
string_classes
):
root
=
os
.
path
.
expanduser
(
root
)
self
.
root
=
root
...
...
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