You need to sign in or sign up before continuing.
Unverified Commit 0663377d authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

properly deprecate legacy implementation -- bis (#5391)

* More deprecations

* update message

* typo
parent 93c85bbc
...@@ -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"
......
...@@ -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,
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment