Skip to content

Commit

Permalink
Fix float literals in array
Browse files Browse the repository at this point in the history
  • Loading branch information
lightvector committed Jul 18, 2019
1 parent fe25cd7 commit 0fdcf8c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cpp/tests/testnn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,17 +405,17 @@ static void testBatchNormLayer(int64_t& numTestsRun) {

//NCHW
vector<float> expected({
10.25, 10.25, 10.2, 10.2, 10.45,
10.05, 10.05, 10.4, 10.4, 10.45,
10.25f, 10.25f, 10.2f, 10.2f, 10.45f,
10.05f, 10.05f, 10.4f, 10.4f, 10.45f,

-4, -2, 0, 2, 4,
12, 10, 8, 6, 4,
-4.0f, -2.0f, 0.0f, 2.0f, 4.0f,
12.0f, 10.0f, 8.0f, 6.0f, 4.0f,

10.15, 10, 10.2, 10, 10.25,
10, 10.25, 10, 10.3, 10,
10.15f, 10.00f, 10.20f, 10.00f, 10.25f,
10.00f, 10.25f, 10.00f, 10.30f, 10.00f,

-2, -4, -4, 0, -2,
-4, 0, 0, -4, 0,
-2.0f, -4.0f, -4.0f, 0.0f, -2.0f,
-4.0f, 0.0f, 0.0f, -4.0f, 0.0f,
});
testConfigurations(label,batchSize,nnXLen,nnYLen,desc,input,mask,expected);
}
Expand Down

0 comments on commit 0fdcf8c

Please sign in to comment.