Skip to content

Commit 679b871

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

File tree

1 file changed

+8
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)