Skip to content

Commit

Permalink
Fix the api error of mobilenetv3 (PaddlePaddle#1256)
Browse files Browse the repository at this point in the history
  • Loading branch information
juncaipeng authored Aug 17, 2021
1 parent c8acc1d commit 37d7745
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paddleseg/models/backbones/mobilenetv3.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ def forward(self, inputs):
outputs = self.conv1(outputs)
outputs = F.relu(outputs)
outputs = self.conv2(outputs)
outputs = F.hard_sigmoid(outputs)
return paddle.multiply(x=inputs, y=outputs, axis=0)
outputs = F.hardsigmoid(outputs)
return paddle.multiply(x=inputs, y=outputs)


def MobileNetV3_small_x0_35(**kwargs):
Expand Down

0 comments on commit 37d7745

Please sign in to comment.