Loading graph_tests/arithmetic_test.cpp +14 −14 Original line number Diff line number Diff line Loading @@ -2716,9 +2716,9 @@ template<jit::float_scalar T> void test_fma() { "Expected a value of one."); // Test reduction. auto var_a = graph::variable<T> (1, "a"); auto var_b = graph::variable<T> (1, "b"); auto var_c = graph::variable<T> (1, "c"); auto var_a = graph::variable<T> (1, ""); auto var_b = graph::variable<T> (1, ""); auto var_c = graph::variable<T> (1, ""); // fma(1,a,b) = a + b auto one_times_vara_plus_varb = graph::fma(one, var_a, var_b); Loading Loading @@ -2767,7 +2767,7 @@ template<jit::float_scalar T> void test_fma() { "Expected common var_b"); // fma(a, b, fma(c, b, d)) -> fma(b, a + c, d) auto var_d = graph::variable<T> (1, "d"); auto var_d = graph::variable<T> (1, ""); auto match1 = graph::fma(var_b, var_a + var_c, var_d); auto nested_fma1 = graph::fma(var_a, var_b, graph::fma(var_c, var_b, var_d)); Loading Loading
graph_tests/arithmetic_test.cpp +14 −14 Original line number Diff line number Diff line Loading @@ -2716,9 +2716,9 @@ template<jit::float_scalar T> void test_fma() { "Expected a value of one."); // Test reduction. auto var_a = graph::variable<T> (1, "a"); auto var_b = graph::variable<T> (1, "b"); auto var_c = graph::variable<T> (1, "c"); auto var_a = graph::variable<T> (1, ""); auto var_b = graph::variable<T> (1, ""); auto var_c = graph::variable<T> (1, ""); // fma(1,a,b) = a + b auto one_times_vara_plus_varb = graph::fma(one, var_a, var_b); Loading Loading @@ -2767,7 +2767,7 @@ template<jit::float_scalar T> void test_fma() { "Expected common var_b"); // fma(a, b, fma(c, b, d)) -> fma(b, a + c, d) auto var_d = graph::variable<T> (1, "d"); auto var_d = graph::variable<T> (1, ""); auto match1 = graph::fma(var_b, var_a + var_c, var_d); auto nested_fma1 = graph::fma(var_a, var_b, graph::fma(var_c, var_b, var_d)); Loading