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
0663377d
Unverified
Commit
0663377d
authored
Feb 09, 2022
by
Nicolas Hug
Committed by
GitHub
Feb 09, 2022
Browse files
properly deprecate legacy implementation -- bis (#5391)
* More deprecations * update message * typo
parent
93c85bbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
torchvision/datasets/voc.py
torchvision/datasets/voc.py
+2
-1
torchvision/models/mobilenetv3.py
torchvision/models/mobilenetv3.py
+2
-2
No files found.
torchvision/datasets/voc.py
View file @
0663377d
...
@@ -80,7 +80,8 @@ class _VOCBase(VisionDataset):
...
@@ -80,7 +80,8 @@ class _VOCBase(VisionDataset):
if
year
==
"2007-test"
:
if
year
==
"2007-test"
:
if
image_set
==
"test"
:
if
image_set
==
"test"
:
warnings
.
warn
(
warnings
.
warn
(
"Acessing the test image set of the year 2007 with year='2007-test' is deprecated. "
"Accessing the test image set of the year 2007 with year='2007-test' is deprecated "
"since 0.12 and will be removed in 0.14. "
"Please use the combination year='2007' and image_set='test' instead."
"Please use the combination year='2007' and image_set='test' instead."
)
)
year
=
"2007"
year
=
"2007"
...
...
torchvision/models/mobilenetv3.py
View file @
0663377d
...
@@ -29,8 +29,8 @@ class SqueezeExcitation(SElayer):
...
@@ -29,8 +29,8 @@ class SqueezeExcitation(SElayer):
self
.
relu
=
self
.
activation
self
.
relu
=
self
.
activation
delattr
(
self
,
"activation"
)
delattr
(
self
,
"activation"
)
warnings
.
warn
(
warnings
.
warn
(
"This SqueezeExcitation class is deprecated and will be removed in
future versions
. "
"This SqueezeExcitation class is deprecated
since 0.12
and will be removed in
0.14
. "
"Use torchvision.ops.
misc.
SqueezeExcitation instead."
,
"Use torchvision.ops.SqueezeExcitation instead."
,
FutureWarning
,
FutureWarning
,
)
)
...
...
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