mirror of
https://code.it4i.cz/sccs/easyconfigs-it4i.git
synced 2025-04-10 17:02:11 +01:00

new file: c/CNTK/CNTK-2.0-foss-2017a-Python-3.6.1.eb new file: c/CNTK/abs.patch new file: c/CNTK/glibc.patch new file: s/SWIG/SWIG-2.0.12-Python-3.6.1.eb new file: s/Spack/Spack-0.10.0.eb deleted: c/CNTK/CNTK-2.0-GCC-7.1.0-2.28-Python-3.6.1.eb
21 lines
985 B
Diff
21 lines
985 B
Diff
--- Tests/UnitTests/V2LibraryTests/FunctionTests.cpp.old 2017-07-07 13:03:11.977578491 +0200
|
|
+++ Tests/UnitTests/V2LibraryTests/FunctionTests.cpp 2017-07-07 13:03:26.434040010 +0200
|
|
@@ -1040,7 +1040,7 @@
|
|
for (auto dropoutRate : { 0.9, 0.4, 0.0, 0.1 })
|
|
{
|
|
dropout->SetAttribute(L"dropoutRate", dropoutRate);
|
|
- BOOST_TEST(abs(zeroCount(forwardFunc(dropout)) - dropoutRate*shape.TotalSize()) < 100);
|
|
+ BOOST_TEST(fabs(zeroCount(forwardFunc(dropout)) - dropoutRate*shape.TotalSize()) < 100);
|
|
}
|
|
|
|
auto plusParam = CNTK::Parameter(CNTK::NDArrayView::RandomUniform<float>(shape, -0.5, 0.5, 1, device));
|
|
@@ -1051,7 +1051,7 @@
|
|
for (auto dropoutRate : { 0.3, 0.7, 0.2 })
|
|
{
|
|
dropout2->SetAttribute(L"dropoutRate", dropoutRate);
|
|
- BOOST_TEST(abs(zeroCount(forwardFunc(combine)) - dropoutRate*shape.TotalSize()) < 100);
|
|
+ BOOST_TEST(fabs(zeroCount(forwardFunc(combine)) - dropoutRate*shape.TotalSize()) < 100);
|
|
}
|
|
}
|
|
|