Skip to content

Commit 7ce65a8

Browse files
lucapericlprwightman
authored andcommitted
Removing unused self.drop
1 parent 884ef88 commit 7ce65a8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

timm/layers/mlp.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ def __init__(
130130
self.fc2 = nn.Linear(hidden_features, out_features, bias=bias[1])
131131
self.drop2 = nn.Dropout(drop_probs[1])
132132

133-
self.drop = nn.Dropout(drop)
134-
135133
def init_weights(self):
136134
# override init of fc1 w/ gate portion set to weight near zero, bias=1
137135
nn.init.ones_(self.fc1_g.bias)

0 commit comments

Comments
 (0)