Skip to content

Commit

Permalink
[NeoML] CtcTest & MobileNetV2BlockTest add check (#984)
Browse files Browse the repository at this point in the history
Signed-off-by: Kirill Golikov <kirill.golikov@abbyy.com>
  • Loading branch information
favorart committed Oct 17, 2023
1 parent 2877663 commit 2f19b7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions NeoML/test/src/CtcTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -940,8 +940,8 @@ static void ctcTestImpl( const CTestParams& params, int seed )

EXPECT_TRUE( FloatEq( naiveLoss->GetLastLoss(), actualLoss->GetLastLoss(), 1e-4f ) ) << naiveLoss->GetLastLoss()
<< '\t' << actualLoss->GetLastLoss();
CompareBlobs( *naiveLoss->GetLastGradient(), *actualLoss->GetLastGradient(), 1e-4f );
CompareBlobs( *naiveLearn->ActualDiff, *actualLearn->ActualDiff, 1e-4f );
EXPECT_TRUE( CompareBlobs( *naiveLoss->GetLastGradient(), *actualLoss->GetLastGradient(), 1e-4f ) );
EXPECT_TRUE( CompareBlobs( *naiveLearn->ActualDiff, *actualLearn->ActualDiff, 1e-4f ) );
}

TEST_P( CCtcTest, Random )
Expand Down
2 changes: 1 addition & 1 deletion NeoML/test/src/MobileNetV2BlockTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ static void mobileNetV2BlockTestImpl( unsigned int seed, int freeTermMask, float

CPtr<CDnnBlob> expectedBlob = expectedSink->GetBlob();
CPtr<CDnnBlob> actualBlob = actualSink->GetBlob();
CompareBlobs( *expectedBlob, *actualBlob );
EXPECT_TRUE( CompareBlobs( *expectedBlob, *actualBlob, 1e-3 ) );
}

TEST( MobileNetV2BlockLayerTest, Run )
Expand Down

0 comments on commit 2f19b7b

Please sign in to comment.