You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/Documents/Configuration Files.md
+17-17
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,7 @@ this “append” processing is not used for arrays elements, and the entire arr
99
99
The ‘\#’ character signifies the beginning of a comment, everything that occurs after the ‘\#’ is ignored. The ‘\#’ must be preceded by whitespace or be at the beginning of the line to be interpreted as a comment. The following are valid comments, and an example of a value that will not be interpreted as a comment:
100
100
101
101
```
102
-
#commands used will be appended the stderr name to create a path
102
+
#commands used will be appended the stderr name to create a path
103
103
stderr=c:\cntk\log\cntk # "_mnistTrain_mnistTest.log" would be appended
104
104
# the parameter below is set to infinity, the ‘#’ in ‘1#INF’ is not a comment marker
105
105
var = 1#INF
@@ -115,11 +115,11 @@ Here is a simple example of a configuration file:
115
115
# sample configuration file for CNTK
116
116
command=mnistTrain:mnistTest
117
117
118
-
#global parameters, all commands use these values unless overridden at a higher level
118
+
#global parameters, all commands use these values unless overridden at a higher level
119
119
precision=float
120
120
deviceId=auto
121
121
122
-
#commands used will be appended the stderr name to create a path
122
+
#commands used will be appended the stderr name to create a path
123
123
stderr=c:\cntk\log\cntk # “_mnistTrain_mnistTest.log” would be appended
124
124
traceLevel=0 # larger values mean more output
125
125
ndlMacros=C:\cntk\config\DefaultMacros.ndl
@@ -136,7 +136,7 @@ mnistTrain=[
136
136
run=ndlMacroUse
137
137
]
138
138
SGD=[
139
-
#modelPath - moved to root level to share with mnistTest
139
+
#modelPath - moved to root level to share with mnistTest
140
140
learningRatesPerMB=0.001
141
141
maxEpochs=50
142
142
]
@@ -276,7 +276,7 @@ mnistTrain=[
276
276
run=ndlMacroUse
277
277
]
278
278
SGD=[
279
-
#modelPath - moved to root level to share with mnistTest
279
+
#modelPath - moved to root level to share with mnistTest
280
280
learningRatesPerMB=0.001
281
281
maxEpochs=50
282
282
]
@@ -925,11 +925,11 @@ The following is an example of a BinaryWriter definition. Since it is most commo
925
925
926
926
#### write definition
927
927
wfile=c:\data\mnist\mnist_train.bin
928
-
#wsize - inital size of the file in MB
928
+
#wsize - inital size of the file in MB
929
929
# if calculated size would be bigger, that is used instead
930
930
wsize=256
931
931
932
-
#wrecords - number of records we should allocate space for in the file
932
+
#wrecords - number of records we should allocate space for in the file
933
933
# files cannot be expanded, so this should be large enough.
934
934
wrecords=60000
935
935
@@ -939,8 +939,8 @@ The following is an example of a BinaryWriter definition. Since it is most commo
939
939
file=c:\data\mnist\mnist_train.txt
940
940
941
941
### write definition
942
-
#wsize=200
943
-
#wfile=c:\data\mnist\mnist_train_features.bin
942
+
#wsize=200
943
+
#wfile=c:\data\mnist\mnist_train_features.bin
944
944
sectionType=data
945
945
]
946
946
labels=[
@@ -953,22 +953,22 @@ The following is an example of a BinaryWriter definition. Since it is most commo
953
953
954
954
#### Write definition ####
955
955
# sizeof(unsigned) which is the label index type
956
-
#wsize=10
957
-
#wfile=c:\data\mnist\mnist_train_labels.bin
956
+
#wsize=10
957
+
#wfile=c:\data\mnist\mnist_train_labels.bin
958
958
elementSize=4
959
959
wref=features
960
960
sectionType=labels
961
961
mapping=[
962
-
#redefine number of records for this section,
963
-
#since we don't need to save it for each data record
962
+
#redefine number of records for this section,
963
+
#since we don't need to save it for each data record
964
964
wrecords=10
965
-
#variable size so use an average string size
965
+
#variable size so use an average string size
966
966
elementSize=10
967
967
sectionType=labelMapping
968
968
]
969
969
category=[
970
970
dim=10
971
-
#elementSize=sizeof(ElemType) is default
971
+
#elementSize=sizeof(ElemType) is default
972
972
sectionType=categoryLabels
973
973
]
974
974
]
@@ -1154,7 +1154,7 @@ The key class that is used to allow the JIT evaluation of configuration strings
1154
1154
1155
1155
Configuration files are mainly made up of a hierarchy of Configuration Sets (*ConfigParameters*), which are dictionaries of *ConfigValue*. This class provides access to the configuration values and automatically searches up the hierarchy of ConfigParameter classes if a value is not found on the current level. The hierarchy is maintained by the order of class instantiations on the stack. ConfigParameters should only be created on the stack.
1156
1156
1157
-
In configuration files the ‘name=value’ named pair are usually separated by newlines. However, they also can be separated by other characters and placed on the same line. The default separator for ConfigParmeters is a ‘;’ (semicolon). This can be overridden by placing the alternate separator character immediately following the opening brace. For example ‘\[|’ causes ‘|’ to be the separator for that ConfigParameter instance:
1157
+
In configuration files the ‘name=value’ named pair are usually separated by newlines. However, they also can be separated by other characters and placed on the same line. The default separator for ConfigParameters is a ‘;’ (semicolon). This can be overridden by placing the alternate separator character immediately following the opening brace. For example ‘\[|’ causes ‘|’ to be the separator for that ConfigParameter instance:
The second parameter is interesting because it is required to retain it value from one call to the next, this is done in a filter graph by having a parameter be input and output at the same time, meaning it updates itself. There is a clear distinction between values that need to be maintained and those that are transcient in a filter graph, and this idiom is how we instruct PTaskGraphBuilder to retain the value. The Initialize option is also necessary so on the first iteration the matrix will be cleared out (zeros).
1527
+
The second parameter is interesting because it is required to retain its value from one call to the next, this is done in a filter graph by having a parameter in input and output at the same time, meaning it updates itself. There is a clear distinction between values that need to be maintained and those that are transcient in a filter graph, and this idiom is how we instruct PTaskGraphBuilder to retain the value. The Initialize option is also necessary so on the first iteration the matrix will be cleared out (zeros).
1528
1528
1529
1529
The last parameter is the gradient matrix of the current node, and is an input (defaults for this function).
0 commit comments