Skip to content

Commit

Permalink
Fix config read part (NVIDIA#2232)
Browse files Browse the repository at this point in the history
Co-authored-by: Chester Chen <[email protected]>
  • Loading branch information
YuanTingHsieh and chesterxgchen authored Dec 20, 2023
1 parent 3ae2eb1 commit 79b253a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvflare/app_opt/lightning/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __init__(self, rank: int = 0, load_state_dict_strict: bool = True):
"""
super(FLCallback, self).__init__()
init(rank=str(rank))
self.train_with_evaluation = get_config().get(ConfigKey.TRAIN_WITH_EVAL, False)
self.train_with_evaluation = get_config().get(ConfigKey.TASK_EXCHANGE, {}).get(ConfigKey.TRAIN_WITH_EVAL, False)
self.current_round = None
self.metrics = None
self.total_local_epochs = 0
Expand Down

0 comments on commit 79b253a

Please sign in to comment.