Fix bugs exposed by enabling GPU asserts.

This commit is contained in:
Antonio Sánchez
2023-01-27 21:43:00 +00:00
committed by Rasmus Munk Larsen
parent ab8725d947
commit 17ae83a966
5 changed files with 19 additions and 18 deletions

View File

@@ -1100,9 +1100,9 @@ void test_gpu_erfc(const Scalar stddev)
template <typename Scalar>
void test_gpu_ndtri()
{
Tensor<Scalar, 1> in_x(8);
Tensor<Scalar, 1> out(8);
Tensor<Scalar, 1> expected_out(8);
Tensor<Scalar, 1> in_x(9);
Tensor<Scalar, 1> out(9);
Tensor<Scalar, 1> expected_out(9);
out.setZero();
in_x(0) = Scalar(1);