mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +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;
|
||||
}
|
||||
}
|
||||
VERIFY_IS_APPROX(result(i, j), sum / count);
|
||||
VERIFY_IS_APPROX(result(i, j), sum / Scalar(count));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user