Skip to content

Commit 25f8b26

Browse files
committed
Putting inplace on Dropout.
1 parent 9a758a8 commit 25f8b26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/models/mobilenetv3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def __init__(
156156
self.classifier = nn.Sequential(
157157
nn.Linear(lastconv_output_channels, last_channel),
158158
nn.Hardswish(inplace=True),
159-
nn.Dropout(p=0.2),
159+
nn.Dropout(p=0.2, inplace=True),
160160
nn.Linear(last_channel, num_classes),
161161
)
162162

0 commit comments

Comments
 (0)