-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Change definition in dc files to support atoms conventions
- Loading branch information
Showing
6 changed files
with
121 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
% This is an auto generated .hrl file | ||
% Generated by Nerlplanner version: 1.0.0 | ||
|
||
-define(DC_KEY_NERLNET_SETTINGS_ATOM,nerlnetSettings). | ||
-define(DC_KEY_FREQUENCY_ATOM,frequency). | ||
-define(DC_KEY_BATCH_SIZE_ATOM,batchSize). | ||
-define(DC_KEY_DEVICES_ATOM,devices). | ||
-define(DC_KEY_CLIENTS_ATOM,clients). | ||
-define(DC_KEY_WORKERS_ATOM,workers). | ||
-define(DC_KEY_MODEL_SHA_ATOM,model_sha). | ||
-define(DC_KEY_SOURCES_ATOM,sources). | ||
-define(DC_KEY_ROUTERS_ATOM,routers). | ||
-define(DC_NAME_FIELD_ATOM,name). | ||
-define(DC_WORKER_MODEL_SHA_FIELD_ATOM,model_sha). | ||
-define(DC_IPV4_FIELD_ATOM,ipv4). | ||
-define(DC_PORT_FIELD_ATOM,port). | ||
-define(DC_ARGS_FIELD_ATOM,args). | ||
-define(DC_ENTITIES_FIELD_ATOM,entities). | ||
-define(DC_POLICY_FIELD_ATOM,policy). | ||
-define(DC_EPOCHS_FIELD_ATOM,epochs). | ||
-define(DC_TYPE_FIELD_ATOM,type). | ||
-define(DC_FREQUENCY_FIELD_ATOM,frequency). | ||
-define(DC_WORKERS_FIELD_ATOM,workers). | ||
|
||
-define(DC_KEY_NERLNET_SETTINGS_STR,"nerlnetSettings"). | ||
-define(DC_KEY_FREQUENCY_STR,"frequency"). | ||
-define(DC_KEY_BATCH_SIZE_STR,"batchSize"). | ||
-define(DC_KEY_DEVICES_STR,"devices"). | ||
-define(DC_KEY_CLIENTS_STR,"clients"). | ||
-define(DC_KEY_WORKERS_STR,"workers"). | ||
-define(DC_KEY_MODEL_SHA_STR,"model_sha"). | ||
-define(DC_KEY_SOURCES_STR,"sources"). | ||
-define(DC_KEY_ROUTERS_STR,"routers"). | ||
-define(DC_NAME_FIELD_STR,"name"). | ||
-define(DC_WORKER_MODEL_SHA_FIELD_STR,"model_sha"). | ||
-define(DC_IPV4_FIELD_STR,"ipv4"). | ||
-define(DC_PORT_FIELD_STR,"port"). | ||
-define(DC_ARGS_FIELD_STR,"args"). | ||
-define(DC_ENTITIES_FIELD_STR,"entities"). | ||
-define(DC_POLICY_FIELD_STR,"policy"). | ||
-define(DC_EPOCHS_FIELD_STR,"epochs"). | ||
-define(DC_TYPE_FIELD_STR,"type"). | ||
-define(DC_FREQUENCY_FIELD_STR,"frequency"). | ||
-define(DC_WORKERS_FIELD_STR,"workers"). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
% This is an auto generated .hrl file | ||
% Generated by Nerlplanner version: 1.0.0 | ||
|
||
-define(KEY_MODEL_TYPE,modelType). | ||
-define(KEY_LAYER_SIZES_LIST,layersSizes). | ||
-define(KEY_LAYER_TYPES_LIST,layerTypesList). | ||
-define(KEY_LAYERS_FUNCTIONS,layers_functions). | ||
-define(KEY_LOSS_METHOD,lossMethod). | ||
-define(KEY_LEARNING_RATE,lr). | ||
-define(KEY_EPOCHS,epochs). | ||
-define(KEY_OPTIMIZER_TYPE,optimizer). | ||
-define(WORKER_KEY_MODEL_TYPE,modelType). | ||
-define(WORKER_KEY_LAYER_SIZES_LIST,layersSizes). | ||
-define(WORKER_KEY_LAYER_TYPES_LIST,layerTypesList). | ||
-define(WORKER_KEY_LAYERS_FUNCTIONS,layers_functions). | ||
-define(WORKER_KEY_LOSS_METHOD,lossMethod). | ||
-define(WORKER_KEY_LEARNING_RATE,lr). | ||
-define(WORKER_KEY_EPOCHS,epochs). | ||
-define(WORKER_KEY_OPTIMIZER_TYPE,optimizer). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
# Any change of this file influences autogenerated Erlang files | ||
# Please change version of Nerlnet Planner if this file is changed | ||
|
||
KEY_NERLNET_SETTINGS = "NerlNetSettings" | ||
# The following definitions are also treated as atoms in Erlang | ||
# Definition must start with lower case letter | ||
KEY_NERLNET_SETTINGS = "nerlnetSettings" | ||
KEY_FREQUENCY = "frequency" | ||
KEY_BATCH_SIZE = "batchSize" | ||
KEY_DEVICES = "devices" | ||
KEY_CLIENTS = "clients" | ||
KEY_WORKERS = "workers" | ||
KEY_MODEL_SHA = "model-sha" | ||
KEY_MODEL_SHA = "model_sha" | ||
KEY_SOURCES = "sources" | ||
KEY_ROUTERS = "routers" | ||
|
||
NAME_FIELD = "name" | ||
WORKER_MODEL_SHA_FIELD = "model-sha" | ||
WORKER_MODEL_SHA_FIELD = "model_sha" | ||
IPV4_FIELD = "ipv4" | ||
PORT_FIELD = "port" | ||
ARGS_FIELD = "args" | ||
ENTITIES_FIELD = "entities" | ||
POLICY_FIELD = "policy" | ||
EPOCHS_FIELD = "epochs" | ||
TYPE_FIELD = "type" | ||
FREQUENCY_FIELD = "frequency" | ||
WORKERS_FIELD = "workers" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters