Skip to content
Snippets Groups Projects
Commit bb116c6a authored by Maxence Naud's avatar Maxence Naud
Browse files

Reduce absolute precision requirement in Test_Adam.cpp

parent 0a8c74f9
No related branches found
No related tags found
2 merge requests!28v0.2.2,!24Change 1D attribute Tensors for scalar Tensors and use compound assignment...
Pipeline #61044 failed
...@@ -146,7 +146,7 @@ TEST_CASE("[learning/Adam] update", "[Optimizer][Adam]") { ...@@ -146,7 +146,7 @@ TEST_CASE("[learning/Adam] update", "[Optimizer][Adam]") {
for (std::size_t t = 0; t < nb_tensors; ++t) { for (std::size_t t = 0; t < nb_tensors; ++t) {
const Tensor tmpt1= *(opt.parameters().at(t)); const Tensor tmpt1= *(opt.parameters().at(t));
const Tensor tmpt2= *tensors[t]; const Tensor tmpt2= *tensors[t];
REQUIRE(approxEq<float,float>(tmpt2, tmpt1, 1e-5f, 1e-8f)); REQUIRE(approxEq<float,float>(tmpt2, tmpt1, 1e-5f, 1e-7f));
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment