Skip to content

Commit 7a9d4c5

Browse files
author
Luan Pham
authored
Change dim to self.dim in segmentation_models_pytorch.base.modules.ArgMax (#236)
1 parent a3cc9ac commit 7a9d4c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

segmentation_models_pytorch/base/modules.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def __init__(self, dim=None):
7070
self.dim = dim
7171

7272
def forward(self, x):
73-
return torch.argmax(x, dim=dim)
73+
return torch.argmax(x, dim=self.dim)
7474

7575

7676
class Activation(nn.Module):

0 commit comments

Comments
 (0)