Skip to content

Commit

Permalink
add eval method
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyballentine committed Nov 18, 2023
1 parent c6c72e1 commit 9388340
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/spandrel/__helpers/model_descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ def cpu(self):
self.model.cpu()
return self

def eval(self):
self.model.eval()
return self

def __call__(self, *args, **kwargs): # noqa: ANN002
return self.model(*args, **kwargs)

Expand Down

0 comments on commit 9388340

Please sign in to comment.