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):
if year == "2007-test":
if image_set == "test":
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."
)
year = "2007"
......
......@@ -29,8 +29,8 @@ class SqueezeExcitation(SElayer):
self.relu = self.activation
delattr(self, "activation")
warnings.warn(
"This SqueezeExcitation class is deprecated and will be removed in future versions. "
"Use torchvision.ops.misc.SqueezeExcitation instead.",
"This SqueezeExcitation class is deprecated since 0.12 and will be removed in 0.14. "
"Use torchvision.ops.SqueezeExcitation instead.",
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