made a minor update to the "Usage" section in README.md
Browse files
README.md
CHANGED
@@ -38,8 +38,8 @@ class IDENTITY(nn.Module, PyTorchModelHubMixin):
|
|
38 |
|
39 |
def forward(self, x):
|
40 |
a = x
|
41 |
-
|
42 |
-
column_sum = torch.sum(
|
43 |
output = (column_sum >= 2).long()
|
44 |
return output
|
45 |
|
|
|
38 |
|
39 |
def forward(self, x):
|
40 |
a = x
|
41 |
+
inputs = torch.cat([a, a], dim=1)
|
42 |
+
column_sum = torch.sum(inputs, dim=1, keepdim=True)
|
43 |
output = (column_sum >= 2).long()
|
44 |
return output
|
45 |
|