Skip to content

Commit

Permalink
add forward func
Browse files Browse the repository at this point in the history
  • Loading branch information
wmkai authored Dec 21, 2022
1 parent d8f6db5 commit 4dae398
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions model/backbone/MobileNetV3.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,8 @@ def forward_head(self, x, pre_logits: bool = False):
if self.drop_rate > 0.:
x = F.dropout(x, p=self.drop_rate, training=self.training)
return self.classifier(x)

def forward(self, x):
x = self.forward_features(x)
x = self.forward_head(x)
return x

0 comments on commit 4dae398

Please sign in to comment.