Tests/UnitTests/MathTests/ConvolutionEngineTests.cpp: improve perf test reliability

This commit is contained in:
Mark Hillebrand 2016-03-08 13:52:57 +01:00
Родитель c22f6cc950
Коммит 5a574305b0
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -740,7 +740,7 @@ BOOST_AUTO_TEST_CASE(BatchNormalizationForwardTrain)
if (crow >= 32 && ccol >= 32)
{
// Use conservative estimates.
int speedup = 2;
float speedup = 1.5;
BOOST_REQUIRE_MESSAGE(speedup * elapsedCntk < elapsedCudnn,
"CNTK implementation (" << elapsedCntk << "ms) must be faster than cuDNN (" << elapsedCudnn << "ms) by at least " << speedup << "x, what's changed? " << tmsg.str());
}
@ -835,7 +835,7 @@ BOOST_AUTO_TEST_CASE(BatchNormalizationForwardInference)
if (crow >= 32 && ccol >= 32)
{
// Use conservative estimates.
int speedup = 2;
float speedup = 1.5;
BOOST_REQUIRE_MESSAGE(speedup * elapsedCntk < elapsedCudnn,
"CNTK implementation (" << elapsedCntk << "ms) must be faster than cuDNN (" << elapsedCudnn << "ms) by at least " << speedup << "x, what's changed? " << tmsg.str());
}