Fix x86 tests (#1691)

* fix x86 tests

* comment
This commit is contained in:
Awni Hannun
2024-12-11 07:47:18 -08:00
committed by GitHub
parent 4f9b60dd53
commit f3dfa36a3a
4 changed files with 10 additions and 9 deletions

View File

@@ -1227,7 +1227,7 @@ TEST_CASE("test arithmetic unary ops") {
CHECK(array_equal(exp(array({})), array({})).item<bool>());
x = array(neginf);
CHECK_EQ(exp(x).item<float>(), 0.0f);
CHECK_EQ(exp(x).item<float>(), doctest::Approx(0.0f));
// Integer input type
x = array(2);