Skip to content

Commit

Permalink
Removed return typing hint that causes an error in Python 3.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
anicolson committed Jul 29, 2022
1 parent 13d450a commit 7765670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transmodal/network/cvt.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(
for n, p in self.cvt.named_parameters():
p.requires_grad = False

def forward(self, images: torch.FloatTensor) -> Union[dict[str, Tensor], dict[str, Union[Tensor, Any]]]:
def forward(self, images: torch.FloatTensor):
"""
Forward propagation.
Expand Down

0 comments on commit 7765670

Please sign in to comment.