Skip to content

Commit

Permalink
use sigmoid mask
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Jul 28, 2022
1 parent a2bb826 commit c405dfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/pnnx/tests/ncnn/test_torchvision_DeformConv2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def forward(self, x):
offset = self.conv_0(x)
x1 = self.conv_1(x, offset)

mask = self.conv_2(x)
mask = F.sigmoid(self.conv_2(x))
x2 = self.conv_3(x, offset, mask)
return x1, x2

Expand Down
2 changes: 1 addition & 1 deletion tools/pnnx/tests/test_torchvision_DeformConv2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def forward(self, x):
offset = self.conv_0(x)
x1 = self.conv_1(x, offset)

mask = self.conv_2(x)
mask = F.sigmoid(self.conv_2(x))
x2 = self.conv_3(x, offset, mask)
return x1, x2

Expand Down

0 comments on commit c405dfd

Please sign in to comment.