mirror of
https://github.com/IBM/ai-privacy-toolkit.git
synced 2026-06-08 15:05:13 +02:00
update
This commit is contained in:
parent
023f8764da
commit
8de77f9afd
1 changed files with 8 additions and 0 deletions
|
|
@ -152,9 +152,17 @@ class PyTorchClassifierWrapper(ArtPyTorchClassifier):
|
|||
self._optimizer.load_state_dict(checkpoint['opt_state_dict'])
|
||||
|
||||
def load_latest_checkpoint(self):
|
||||
"""
|
||||
Load model only based on the check point path (latest.tar)
|
||||
:return: loaded model
|
||||
"""
|
||||
self.load_checkpoint_by_path('latest.tar')
|
||||
|
||||
def load_best_checkpoint(self):
|
||||
"""
|
||||
Load model only based on the check point path (model_best.tar)
|
||||
:return: loaded model
|
||||
"""
|
||||
self.load_checkpoint_by_path('model_best.tar')
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue