Skip to content

Commit

Permalink
add none default values (#3025)
Browse files Browse the repository at this point in the history
  • Loading branch information
SYangster authored Oct 10, 2024
1 parent 3695979 commit 57d843a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvflare/app_opt/pt/job_config/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


class PTModel:
def __init__(self, model, persistor: Optional[ModelPersistor], locator: Optional[ModelLocator]):
def __init__(self, model, persistor: Optional[ModelPersistor] = None, locator: Optional[ModelLocator] = None):
"""PyTorch model wrapper.
If model is an nn.Module, add a PTFileModelPersistor with the model and a TFModelPersistor.
Expand Down

0 comments on commit 57d843a

Please sign in to comment.