Skip to content

Commit 615dfeb

Browse files
kshyattJutho
andauthored
Update test/mooncake.jl
Co-authored-by: Jutho <Jutho@users.noreply.github.com>
1 parent ea2f955 commit 615dfeb

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

test/mooncake.jl

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,9 @@ function test_pullbacks_match(rng, f!, f, A, args, Δargs, alg = nothing; rdata
7171
end
7272
inplace_pb!!(rdata)
7373

74-
if eltype(A) <: Real
75-
@test dA_inplace dA_copy
76-
else
77-
dA_inplace_ = Mooncake.arrayify(A, dA_inplace)[2]
78-
dA_copy_ = Mooncake.arrayify(A, dA_copy)[2]
79-
@test dA_inplace_ dA_copy_
80-
end
74+
dA_inplace_ = Mooncake.arrayify(A, dA_inplace)[2]
75+
dA_copy_ = Mooncake.arrayify(A, dA_copy)[2]
76+
@test dA_inplace_ dA_copy_
8177
return
8278
end
8379

0 commit comments

Comments
 (0)