From 54de90184b6b621ff1fe6cb142bfb64299987ea4 Mon Sep 17 00:00:00 2001 From: cryscan Date: Tue, 16 Jan 2024 00:52:54 +0800 Subject: [PATCH] Recover test precision. --- src/tensor/ops.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tensor/ops.rs b/src/tensor/ops.rs index 332b3ee..3235f20 100644 --- a/src/tensor/ops.rs +++ b/src/tensor/ops.rs @@ -2218,7 +2218,7 @@ mod tests { for (index, (a, b)) in Iterator::zip(x_host.into_iter(), ans.into_iter()).enumerate() { assert!( - is_approx_eps(a, b, 0.01), + is_approx_eps(a, b, 1.0e-3), "Failed at index {index}, computed: {a} vs. answer: {b}" ); }