Skip to content

Commit 21c18c2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 007dcf1 commit 21c18c2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

neural_network/real_time_encoder_transformer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ def forward(self, time_steps: np.ndarray) -> np.ndarray:
3838
>>> out.shape
3939
(1, 3, 4)
4040
"""
41-
42-
41+
4342
linear = self.w0 * time_steps + self.b0
4443
periodic = np.sin(time_steps * self.w[:, None, :] + self.b[:, None, :])
4544
return np.concatenate([linear, periodic], axis=-1)

0 commit comments

Comments
 (0)