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 5a1038e commit c9dfa6a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src_erl/NerlnetApp/src/Bridge/onnWorkers/workerGeneric.erl
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,13 @@ wait(cast, {end_stream , StreamName}, State = #workerGeneric_state{myName = _MyN

wait(cast, {post_train_update, Data}, State = #workerGeneric_state{myName = _MyName, distributedBehaviorFunc = DistributedBehaviorFunc}) ->
NextStateBehavior = DistributedBehaviorFunc(post_train, {get(generic_worker_ets), {post_train_update, Data}}),
if
NextStateBehavior == train ->
ok;
true ->
?LOG_ERROR("@wait: post_train controller method must return train atom!"),
throw("@wait: post_train controller method must return train atom!")
end,
handle_end_stream_waiting_list(DistributedBehaviorFunc, train),
{next_state, NextStateBehavior, State};

Expand Down

0 comments on commit c9dfa6a

Please sign in to comment.