mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Update tensor reduction test to avoid undefined division of bfloat16 by int.
This commit is contained in:
parent
0aeaf5f451
commit
ac2eca6b11
@ -204,7 +204,7 @@ static void test_simple_reductions() {
|
|||||||
++count;
|
++count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
VERIFY_IS_APPROX(result(i, j), sum / count);
|
VERIFY_IS_APPROX(result(i, j), sum / Scalar(count));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user