Skip to content

Commit

Permalink
frexp_fix (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffburdick authored Jan 8, 2025
1 parent 1bfe456 commit 0897097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/00_operators/OperatorTests.cu
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,9 @@ TYPED_TEST(OperatorTestsFloatNonComplexNonHalfAllExecs, Frexp)
auto tofrac = make_tensor<TestType>({10});
auto toint = make_tensor<int>({10});

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

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

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

( tofrac_real = ofrac_real,
toint_real = oint_real,
Expand Down

0 comments on commit 0897097

Please sign in to comment.