We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3cc9ac commit 7a9d4c5Copy full SHA for 7a9d4c5
segmentation_models_pytorch/base/modules.py
@@ -70,7 +70,7 @@ def __init__(self, dim=None):
70
self.dim = dim
71
72
def forward(self, x):
73
- return torch.argmax(x, dim=dim)
+ return torch.argmax(x, dim=self.dim)
74
75
76
class Activation(nn.Module):
0 commit comments