"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "26b13fc33c5be5d3ffbab87df68d048a530ef047"
Commit 643bd6ba authored by Davis King's avatar Davis King
Browse files

Added a few more tests

parent 4ad6f586
...@@ -561,6 +561,11 @@ namespace ...@@ -561,6 +561,11 @@ namespace
DLIB_TEST(std::abs(obj1 - obj3) < 1e-2); DLIB_TEST(std::abs(obj1 - obj3) < 1e-2);
DLIB_TEST(std::abs(obj1 - obj4) < 1e-2); DLIB_TEST(std::abs(obj1 - obj4) < 1e-2);
DLIB_TEST(std::abs(obj1 - obj5) < 1e-2); DLIB_TEST(std::abs(obj1 - obj5) < 1e-2);
DLIB_TEST(std::abs(obj1 - 1.155) < 1e-2);
DLIB_TEST(std::abs(obj2 - 1.155) < 1e-2);
DLIB_TEST(std::abs(obj3 - 1.155) < 1e-2);
DLIB_TEST(std::abs(obj4 - 1.155) < 1e-2);
DLIB_TEST(std::abs(obj5 - 1.155) < 1e-2);
dlog << LINFO << "weight error: "<< max(abs(df1.weights - df2.weights)); dlog << LINFO << "weight error: "<< max(abs(df1.weights - df2.weights));
dlog << LINFO << "weight error: "<< max(abs(df1.weights - df3.weights)); dlog << LINFO << "weight error: "<< max(abs(df1.weights - df3.weights));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment