Skip to content

Commit

Permalink
Use input and output files for each test
Browse files Browse the repository at this point in the history
  • Loading branch information
ivrodr-msft committed Aug 3, 2016
1 parent 8003758 commit 74fffe3
Show file tree
Hide file tree
Showing 42 changed files with 1,315 additions and 1,332 deletions.
1 change: 0 additions & 1 deletion Tests/UnitTests/BrainScriptTests/BrainScriptTests.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@
<ItemGroup>
<ClInclude Include="..\..\..\Source\CNTK\BrainScript\BrainScriptEvaluator.h" />
<ClInclude Include="..\..\..\Source\CNTK\BrainScript\BrainScriptParser.h" />
<ClInclude Include="ParserTestsData.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="targetver.h" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<ClInclude Include="..\..\..\Source\CNTK\BrainScript\BrainScriptParser.h">
<Filter>From Brainscript</Filter>
</ClInclude>
<ClInclude Include="ParserTestsData.h" />
</ItemGroup>
<ItemGroup>
<Filter Include="From Brainscript">
Expand Down
27 changes: 27 additions & 0 deletions Tests/UnitTests/BrainScriptTests/Data/Parser/ExpectedOutput1.txt
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 Tests/UnitTests/BrainScriptTests/Data/Parser/ExpectedOutput10.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
[]
arr =
array
1
10
=>
()
i

*
2
i



do =
(
Print
()
val


val =
if
!(
0

42
:
-(
+(
-(
+(
+(
-(
13






[]
a =
'a'
b =
42

+(
14




40 changes: 40 additions & 0 deletions Tests/UnitTests/BrainScriptTests/Data/Parser/ExpectedOutput11.txt
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 =
(
Print
()
arg



31 changes: 31 additions & 0 deletions Tests/UnitTests/BrainScriptTests/Data/Parser/ExpectedOutput12.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[]
do =
(
Print
()
val


offset =
13
val =
(
. v
[]
v =
=>
()
i

+
i
offset




()
42



132 changes: 132 additions & 0 deletions Tests/UnitTests/BrainScriptTests/Data/Parser/ExpectedOutput13.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
[]
do =
(
Print
()
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 Tests/UnitTests/BrainScriptTests/Data/Parser/ExpectedOutput14.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[]
do =
(
Print
()
(
fac
()
5




fac =
=>
()
i

if
>
i
1

*
(
fac
()
-
i
1



i

1



Loading

0 comments on commit 74fffe3

Please sign in to comment.