Skip to content

Commit 0897097

Browse files
authored
frexp_fix (#817)
1 parent 1bfe456 commit 0897097

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/00_operators/OperatorTests.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,9 @@ TYPED_TEST(OperatorTestsFloatNonComplexNonHalfAllExecs, Frexp)
415415
auto tofrac = make_tensor<TestType>({10});
416416
auto toint = make_tensor<int>({10});
417417

418+
(tiv0 = random<TestType>(tiv0.Shape(), NORMAL)).run(exec);
418419
// Create operators representing fractional and integer
419420
const auto [ofrac, oint] = frexp(tiv0);
420-
(tiv0 = random<TestType>(tiv0.Shape(), NORMAL)).run(exec);
421421
(tofrac = ofrac, toint = oint).run(exec);
422422
// example-end frexp-test-1
423423

@@ -459,8 +459,8 @@ TYPED_TEST(OperatorTestsComplexNonHalfTypesAllExecs, Frexpc)
459459
auto toint_imag = make_tensor<int>({10});
460460

461461
// Create operators representing fractional and integer
462-
const auto [ofrac_real, oint_real, ofrac_imag, oint_imag] = frexpc(tiv0);
463462
(tiv0 = random<TestType>(tiv0.Shape(), NORMAL)).run(exec);
463+
const auto [ofrac_real, oint_real, ofrac_imag, oint_imag] = frexpc(tiv0);
464464

465465
( tofrac_real = ofrac_real,
466466
toint_real = oint_real,

0 commit comments

Comments
 (0)