Skip to content

Commit

Permalink
Remove keyword args in dict.fromkeys
Browse files Browse the repository at this point in the history
Signed-off-by: Shah, Karan <[email protected]>
  • Loading branch information
MasterSkepticista committed Jul 10, 2024
1 parent b4cf970 commit 51a32d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openfl/native/fastestimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def fit(self):

aggregator = plan.get_aggregator()

model_states = dict.fromkeys(plan.authorized_cols, value=None)
model_states = dict.fromkeys(plan.authorized_cols, None)
runners = {}
save_dir = {}
data_path = 1
Expand Down
2 changes: 1 addition & 1 deletion openfl/utilities/optimizers/numpy/adam_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(
self.beta_1, self.beta_2 = betas
self.initial_accumulator_value = initial_accumulator_value
self.epsilon = epsilon
self.current_step = dict.fromkeys(self.params, value=0)
self.current_step = dict.fromkeys(self.params, 0)

self.grads_first_moment, self.grads_second_moment = {}, {}

Expand Down

0 comments on commit 51a32d1

Please sign in to comment.