Skip to content

Commit c4c5ac4

Browse files
committed
Adding deprecation warning for torchvision.models.segmentation.segmentation.
1 parent bee91a1 commit c4c5ac4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
from .fcn import *
2-
from .deeplabv3 import *
3-
from .lraspp import *
1+
import warnings
2+
3+
from . import * # noqa: F401, F403
4+
5+
6+
warnings.warn(
7+
"The 'torchvision.models.segmentation.segmentation' module is deprecated. Please use directly the parent module "
8+
"instead."
9+
)

0 commit comments

Comments
 (0)