forked from microsoft/CNTK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use input and output files for each test
- Loading branch information
1 parent
8003758
commit 74fffe3
Showing
42 changed files
with
1,315 additions
and
1,332 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
27 changes: 27 additions & 0 deletions
27
Tests/UnitTests/BrainScriptTests/Data/Parser/ExpectedOutput1.txt
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,27 @@ | ||
[] | ||
do = | ||
+ | ||
* | ||
( | ||
Parameter | ||
() | ||
13 | ||
42 | ||
|
||
|
||
( | ||
Input | ||
() | ||
42 | ||
|
||
|
||
|
||
( | ||
Parameter | ||
() | ||
13 | ||
1 | ||
|
||
|
||
|
||
|
54 changes: 54 additions & 0 deletions
54
Tests/UnitTests/BrainScriptTests/Data/Parser/ExpectedOutput10.txt
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,54 @@ | ||
[] | ||
arr = | ||
array | ||
1 | ||
10 | ||
=> | ||
() | ||
i | ||
|
||
* | ||
2 | ||
i | ||
|
||
|
||
|
||
do = | ||
( | ||
() | ||
val | ||
|
||
|
||
val = | ||
if | ||
!( | ||
0 | ||
|
||
42 | ||
: | ||
-( | ||
+( | ||
-( | ||
+( | ||
+( | ||
-( | ||
13 | ||
|
||
|
||
|
||
|
||
|
||
|
||
[] | ||
a = | ||
'a' | ||
b = | ||
42 | ||
|
||
+( | ||
14 | ||
|
||
|
||
|
||
|
40 changes: 40 additions & 0 deletions
40
Tests/UnitTests/BrainScriptTests/Data/Parser/ExpectedOutput11.txt
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,40 @@ | ||
[] | ||
N = | ||
5 | ||
arg = | ||
arr | ||
arr = | ||
array | ||
1 | ||
N | ||
=> | ||
() | ||
i | ||
|
||
if | ||
< | ||
i | ||
N | ||
|
||
* | ||
[ | ||
arr | ||
+ | ||
i | ||
1 | ||
|
||
|
||
i | ||
|
||
N | ||
|
||
|
||
|
||
do = | ||
( | ||
() | ||
arg | ||
|
||
|
||
|
31 changes: 31 additions & 0 deletions
31
Tests/UnitTests/BrainScriptTests/Data/Parser/ExpectedOutput12.txt
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,31 @@ | ||
[] | ||
do = | ||
( | ||
() | ||
val | ||
|
||
|
||
offset = | ||
13 | ||
val = | ||
( | ||
. v | ||
[] | ||
v = | ||
=> | ||
() | ||
i | ||
|
||
+ | ||
i | ||
offset | ||
|
||
|
||
|
||
|
||
() | ||
42 | ||
|
||
|
||
|
132 changes: 132 additions & 0 deletions
132
Tests/UnitTests/BrainScriptTests/Data/Parser/ExpectedOutput13.txt
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,132 @@ | ||
[] | ||
do = | ||
( | ||
() | ||
val | ||
|
||
|
||
val = | ||
new NDLComputationNetwork | ||
[] | ||
CE = | ||
( | ||
CrossEntropyWithSoftmax | ||
() | ||
myLabels | ||
outZ | ||
|
||
|
||
Err = | ||
( | ||
ErrorPrediction | ||
() | ||
myLabels | ||
outZ | ||
|
||
|
||
HiddenStack = | ||
=> | ||
() | ||
layer | ||
|
||
if | ||
> | ||
layer | ||
1 | ||
|
||
( | ||
SBFF | ||
() | ||
. Eh | ||
( | ||
HiddenStack | ||
() | ||
- | ||
layer | ||
1 | ||
|
||
|
||
|
||
|
||
hiddenDim | ||
hiddenDim | ||
|
||
|
||
( | ||
SBFF | ||
() | ||
featNorm | ||
hiddenDim | ||
featDim | ||
|
||
|
||
|
||
|
||
ScaledLogLikelihood = | ||
- | ||
outZ | ||
logPrior | ||
|
||
featDim = | ||
* | ||
40 | ||
31 | ||
|
||
featNorm = | ||
( | ||
MeanVarNorm | ||
() | ||
myFeatures | ||
|
||
|
||
hiddenDim = | ||
2048 | ||
labelDim = | ||
9000 | ||
logPrior = | ||
( | ||
LogPrior | ||
() | ||
myLabels | ||
|
||
|
||
myFeatures = | ||
( | ||
Input | ||
() | ||
featDim | ||
|
||
|
||
myLabels = | ||
( | ||
Input | ||
() | ||
labelDim | ||
|
||
|
||
numHiddenLayers = | ||
3 | ||
outLayer = | ||
( | ||
BFF | ||
() | ||
. Eh | ||
( | ||
HiddenStack | ||
() | ||
numHiddenLayers | ||
|
||
|
||
|
||
labelDim | ||
hiddenDim | ||
|
||
|
||
outZ = | ||
. z | ||
outLayer | ||
|
||
|
||
|
||
|
39 changes: 39 additions & 0 deletions
39
Tests/UnitTests/BrainScriptTests/Data/Parser/ExpectedOutput14.txt
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,39 @@ | ||
[] | ||
do = | ||
( | ||
() | ||
( | ||
fac | ||
() | ||
5 | ||
|
||
|
||
|
||
|
||
fac = | ||
=> | ||
() | ||
i | ||
|
||
if | ||
> | ||
i | ||
1 | ||
|
||
* | ||
( | ||
fac | ||
() | ||
- | ||
i | ||
1 | ||
|
||
|
||
|
||
i | ||
|
||
1 | ||
|
||
|
||
|
Oops, something went wrong.