Skip to content

Commit

Permalink
Get rid of kwargs
Browse files Browse the repository at this point in the history
Signed-off-by: Shah, Karan <[email protected]>
  • Loading branch information
MasterSkepticista committed Dec 5, 2024
1 parent 60c9195 commit 6fbbd77
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions openfl/component/aggregator/aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(
write_logs=False,
log_memory_usage=False,
log_metric_callback=None,
**kwargs,
initial_tensor_dict=None,
):
"""Initializes the Aggregator.
Expand Down Expand Up @@ -108,7 +108,7 @@ def __init__(
False.
log_metric_callback (optional): Callback for log metric. Defaults
to None.
**kwargs: Additional keyword arguments.
initial_tensor_dict (dict, optional): Initial tensor dictionary.
"""
self.round_number = 0
self.single_col_cert_common_name = single_col_cert_common_name
Expand Down Expand Up @@ -166,10 +166,10 @@ def __init__(
self.best_tensor_dict: dict = {}
self.last_tensor_dict: dict = {}

if kwargs.get("initial_tensor_dict", None) is not None:
self._load_initial_tensors_from_dict(kwargs["initial_tensor_dict"])
if initial_tensor_dict is not None:
self._load_initial_tensors_from_dict(initial_tensor_dict)
self.model = utils.construct_model_proto(
tensor_dict=kwargs["initial_tensor_dict"],
tensor_dict=initial_tensor_dict,
round_number=0,
tensor_pipe=self.compression_pipeline,
)
Expand Down

0 comments on commit 6fbbd77

Please sign in to comment.