Skip to content

Commit

Permalink
comments/print
Browse files Browse the repository at this point in the history
  • Loading branch information
halfway258 committed Apr 23, 2023
1 parent d719e5a commit f4cab20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
-export([getDeviceEntities/3]).
-define(ARCH_ADDR, "/usr/local/lib/nerlnet-lib/NErlNet/src_erl/Communication_Layer/http_Nerlserver/arch.json").
-define(COMM_ADDR, "/usr/local/lib/nerlnet-lib/NErlNet/src_erl/Communication_Layer/http_Nerlserver/conn.json").
-define(FILE_IDENTIFIER,"[jsonParder] ").
-define(FILE_IDENTIFIER,"[jsonParser] ").

getDeviceEntities(_ArchitectureAdderess,_CommunicationMapAdderess, HostName)->

Expand Down Expand Up @@ -275,7 +275,7 @@ addDeviceToGraph(G,ArchitectureMap, HostName)->

OnDeviceEntities1 = getOnDeviceEntities(maps:get(<<"devices">>,ArchitectureMap),HostName),
OnDeviceEntities =re:split(binary_to_list(OnDeviceEntities1),",",[{return,list}]),
logger:notice(?FILE_IDENTIFIER++"OnDeviceEntities:~n~p~n",[OnDeviceEntities]),
logger:notice(?FILE_IDENTIFIER++"adding device ~p to graph~n",[OnDeviceEntities]),

%%ADD THIS TO NERLNET:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ sendSamples(ListOfSamples,CSVPath,ChunkSize,LengthOfSample, Ms,Pid,Triplets,Coun
%%this http request will be splitted at client's state machine by the following order:
%% Body: ClientName#WorkerName#CSVName#BatchNumber#BatchOfSamples
if NumOfBatchesToSend rem 10 == 0 ->
logger:info("~p samples left to send~n", [NumOfBatchesToSend]); true -> skip end,
io:format("~p samples left to send~n", [NumOfBatchesToSend]); true -> skip end,

if Method == ?SENDALL ->
%%sending batch to all clients"
Expand Down
3 changes: 1 addition & 2 deletions src_erl/erlBridge/nerlNetStatem.erl
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ start_link(ARGS) ->
%% process to initialize.

init({WorkerName,ModelId, ModelType, ScalingMethod,LayerTypesList,LayersSizes,LayersActivationFunctions,FederatedMode,CountLimit,Optimizer, Features, Labels, LossMethod, LearningRate, ClientPID}) ->
logger:notice(?FILE_IDENTIFIER++"start module_create ~n"),
logger:notice(?FILE_IDENTIFIER++"WorkerName: ~p ,ModelId: ~p , ModelType: ~p , ScalingMethod: ~p ,LayerTypesList: ~p ,LayersSizes: ~p ,LayersActivationFunctions: ~p ,FederatedMode: ~p ,CountLimit: ~p ,Optimizer: ~p , Features: ~p , Labels: ~p , ClientPID: ~p~n"
logger:notice(?FILE_IDENTIFIER++"Creating: WorkerName: ~p ,ModelId: ~p , ModelType: ~p , ScalingMethod: ~p ,LayerTypesList: ~p ,LayersSizes: ~p ,LayersActivationFunctions: ~p ,FederatedMode: ~p ,CountLimit: ~p ,Optimizer: ~p , Features: ~p , Labels: ~p , ClientPID: ~p~n"
,[WorkerName,ModelId, ModelType, ScalingMethod,LayerTypesList,LayersSizes,LayersActivationFunctions,FederatedMode,CountLimit,Optimizer, Features, Labels, ClientPID]),
%%^^^^^^^^^^^^^^^^^^^^^^^^^^
Res=nerlNIF:create_nif(ModelId, ModelType , ScalingMethod , LayerTypesList , LayersSizes , LayersActivationFunctions),
Expand Down

0 comments on commit f4cab20

Please sign in to comment.