Skip to content
Snippets Groups Projects
Commit ef50ce6c authored by Alain Riou's avatar Alain Riou
Browse files

make it work w/ python 3.8

parent b751f1d7
No related branches found
No related tags found
No related merge requests found
...@@ -161,7 +161,7 @@ class PESTO(nn.Module): ...@@ -161,7 +161,7 @@ class PESTO(nn.Module):
def __init__(self, def __init__(self,
encoder: nn.Module, encoder: nn.Module,
preprocessor: nn.Module, preprocessor: nn.Module,
crop_kwargs: Mapping[str, Any] | None = None, crop_kwargs: Optional[Mapping[str, Any]] = None,
reduction: str = "alwa"): reduction: str = "alwa"):
super(PESTO, self).__init__() super(PESTO, self).__init__()
self.encoder = encoder self.encoder = encoder
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment