Skip to content

Commit

Permalink
fix(pre-commit.ci): auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 5, 2024
1 parent 9015e20 commit 64e1daa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion srai/embedders/gtfs2vec/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def forward(self, x: "torch.Tensor") -> "torch.Tensor":
Args:
x (torch.Tensor): Input tensor.
"""
embedding: "torch.Tensor" = self.encoder(x)
embedding: torch.Tensor = self.encoder(x)
return embedding

def configure_optimizers(self) -> "torch.optim.Optimizer":
Expand Down
2 changes: 1 addition & 1 deletion srai/embedders/highway2vec/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def forward(self, x: "torch.Tensor") -> "torch.Tensor":
Args:
x (torch.Tensor): Input tensor.
"""
z: "torch.Tensor" = self.encoder(x)
z: torch.Tensor = self.encoder(x)
return z

def training_step(self, batch: "torch.Tensor", batch_idx: int) -> "torch.Tensor":
Expand Down

0 comments on commit 64e1daa

Please sign in to comment.