Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-gao-GY committed Dec 1, 2023
1 parent b4c9e28 commit 2a6d15c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion baselines/fedvssl/fedvssl/finetune_preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ def args_parser():
try:
params = params["arr_0"].item()
except:
# For the cases where the weights are stored as NumPy arrays instead of parameters
params = [
np.array(v) for v in list(params["arr_0"])
] # for the cases where the weights are stored as NumPy arrays instead of parameters
]
try:
params = parameters_to_ndarrays(params)
except:
Expand Down

0 comments on commit 2a6d15c

Please sign in to comment.