Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Agrawal, Kush <[email protected]>
  • Loading branch information
kagrawa2 committed Feb 21, 2025
1 parent 6101894 commit 22f5288
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openfl/component/collaborator/collaborator.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def do_task(self, task, round_number) -> dict:
del local_output_tensor_dict
del input_tensor_dict
return metrics

def get_numpy_dict_for_tensorkeys(self, tensor_keys):
"""Get tensor dictionary for specified tensorkey set.
Expand Down
4 changes: 3 additions & 1 deletion openfl/databases/tensor_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ def cache_tensor(self, tensor_key_dict: Dict[TensorKey, np.ndarray]) -> None:
)
entries_to_add.append(new_entry)

self.tensor_db = pd.concat([self.tensor_db, *entries_to_add], ignore_index=True, copy=True)
self.tensor_db = pd.concat(
[self.tensor_db, *entries_to_add], ignore_index=True, copy=True
)

del old_tensor_db
entries_to_add.clear()
Expand Down
1 change: 1 addition & 0 deletions openfl/federated/task/runner_pt.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from copy import deepcopy
from typing import Iterator, Tuple

import numpy as np
import torch
import torch.nn as nn
Expand Down

0 comments on commit 22f5288

Please sign in to comment.