Skip to content

Commit

Permalink
fixed deprecated Sigmoid
Browse files Browse the repository at this point in the history
  • Loading branch information
LostOxygen committed Jul 3, 2023
1 parent d8f2391 commit 4bd4aca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel_eval/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def forward(self, x_val: Tensor) -> Tensor:
if self.is_cifar:
out = F.softmax(out, dim=-1)
else:
out = F.sigmoid(out)
out = torch.sigmoid(out)

return out

Expand Down Expand Up @@ -251,7 +251,7 @@ def forward(self, x_val: Tensor) -> Tensor:
if self.is_cifar:
out = F.softmax(out, dim=-1)
else:
out = F.sigmoid(out)
out = torch.sigmoid(out)

return out

Expand Down Expand Up @@ -294,6 +294,6 @@ def forward(self, out) -> torch.Tensor:
if self.is_cifar:
out = F.softmax(out, dim=-1)
else:
out = F.sigmoid(out)
out = torch.sigmoid(out)

return out

0 comments on commit 4bd4aca

Please sign in to comment.