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: docs/developer-guide/param-and-model-file-structure.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,9 @@ Softmax softmax 1 1 fc prob 0=0
18
18
* layer count : count of the layer line follows, should be exactly the count of all layer names
19
19
* blob count : count of all blobs, usually greater than or equals to the layer count
20
20
### layer line
21
+
22
+
each layer must occupy exactly one physical line, including all blob names and parameters; do not split a layer across lines or put multiple layers on the same line
//a literal '-' in the id scanset must not consume punctuation in layer types
1111
-
constchar* headers[] = {".Custom next 1 1 in out", "/Custom next 1 1 in out", ",Custom next 1 1 in out"};
1139
+
//the next layer name is independent of parameter syntax, even with no parameters
1140
+
constchar* headers[] = {".Custom next 1 1 in out", "/Custom next 1 1 in out", ",Custom next 1 1 in out", "+Probe next 1 1 in out", "-Probe next 1 1 in out", "123Probe next 1 1 in out"};
1112
1141
for (size_t i = 0; i < sizeof(headers) / sizeof(headers[0]); i++)
1113
1142
for (int empty = 0; empty < 2; empty++)
1114
1143
{
@@ -1136,8 +1165,8 @@ static int test_paramdict_reload()
1136
1165
}
1137
1166
}
1138
1167
1139
-
constchar* text = "0=42 1=1.5 2=3,4 3=hello 31=31\r\nReLU next 1 1 in out\r\n4=7\r\nClip last 1 1 out final\r\n";
1140
-
constchar* old_array_text = "0=42 1=1.5 -23302=2,3,4 3=hello 31=31\r\nReLU next 1 1 in out\r\n4=7\r\nClip last 1 1 out final\r\n";
1168
+
constchar* text = "0=42 1=1.5 2=3,4 3=hello 31=31\r\nReLU next 1 1 in out 4=7\r\nClip last 1 1 out final\r\n";
1169
+
constchar* old_array_text = "0=42 1=1.5 -23302=2,3,4 3=hello 31=31\r\nReLU next 1 1 in out 4=7\r\nClip last 1 1 out final\r\n";
1141
1170
1142
1171
// three consecutive parameter blocks, with no parameters in the last block
0 commit comments