Skip to content

Commit 0c80992

Browse files
[github-action] formatting fixes
1 parent eba0620 commit 0c80992

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

sandbox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
idx = torch.LongTensor([0, 1, 4])
2929
res = emb(idx)
3030

31-
print("{0},{1}".format(res.size(dim=0),res.size(dim=1)))
31+
print("{0},{1}".format(res.size(dim=0), res.size(dim=1)))

torchhd/embeddings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ def __init__(
338338

339339
def reset_parameters(self) -> None:
340340
nn.init.normal_(self.weight, 0, 1)
341-
nn.init.uniform_(self.bias, 0, 2*math.pi)
341+
nn.init.uniform_(self.bias, 0, 2 * math.pi)
342342

343343
def forward(self, input: torch.Tensor) -> torch.Tensor:
344344
projected = F.linear(input, self.weight)
345-
return torch.cos(projected + self.bias) * torch.sin(projected)
345+
return torch.cos(projected + self.bias) * torch.sin(projected)

torchhd/tests/test_embeddings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@
3838
# @pytest.mark.parametrize("dtype", torch_dtypes)
3939
# def test_value(self, dtype):
4040
# assert True
41-

0 commit comments

Comments
 (0)