Skip to content

Commit

Permalink
[TORCH] FED DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyPerets106 committed Aug 3, 2024
1 parent 0f15d16 commit 93034b1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ post_train({GenWorkerEts, _Data}) ->
SyncCount = ets:lookup_element(FedClientEts, sync_count, ?ETS_KEYVAL_VAL_IDX),
MaxSyncCount = ets:lookup_element(FedClientEts, sync_max_count, ?ETS_KEYVAL_VAL_IDX),
if SyncCount == MaxSyncCount ->
io:format("~p sent averaging request to server~n", [MyName]),
ModelID = ets:lookup_element(GenWorkerEts, model_id, ?ETS_KEYVAL_VAL_IDX),
WeightsTensor = nerlNIF:call_to_get_weights(ModelID),
ServerName = ets:lookup_element(FedClientEts, server_name, ?ETS_KEYVAL_VAL_IDX),
Expand Down

0 comments on commit 93034b1

Please sign in to comment.