Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
ynonflumintel committed Dec 16, 2024
1 parent d7f9f57 commit 3ca88bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openfl/federated/task/fl_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, build_model, optimizer=None, loss_fn=None, **kwargs):
self.runner.validate = lambda *args, **kwargs: build_model.validate(
self.runner, *args, **kwargs
)

if hasattr(self.model, "train_epoch"):
self.runner.train_epoch = lambda *args, **kwargs: build_model.train_epoch(
self.runner, *args, **kwargs
Expand Down

0 comments on commit 3ca88bd

Please sign in to comment.