Skip to content

Commit

Permalink
Fix wrong typing of model in LazyModel
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmc2005 committed Nov 3, 2023
1 parent 653984c commit 539e401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diart/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class LazyModel(ABC):
def __init__(self, loader: Callable[[], Callable]):
super().__init__()
self.get_model = loader
self.model: Optional[nn.Module] = None
self.model: Optional[Callable] = None

def is_in_memory(self) -> bool:
"""Return whether the model has been loaded into memory"""
Expand Down

0 comments on commit 539e401

Please sign in to comment.