Skip to content

Commit b9941cd

Browse files
committed
Add at-allowscalar
1 parent 99a9551 commit b9941cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/autodiff.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ f_sincos_jac(x) = [cos(x[i]) * (i == j ? 1 : 0) - sin(x[end-i+1]) * (i == (lengt
109109
jac(x) = only(Enzyme.jacobian(Enzyme.Forward, f_sincos, x))
110110
x_r = Reactant.to_rarray(rand(10))
111111

112-
j_gt = f_sincos_jac(x_r)
112+
j_gt = Reactant.@allowscalar f_sincos_jac(x_r)
113113
j_reactant = Reactant.@jit jac(x_r)
114114

115115
@test j_reactant j_gt

0 commit comments

Comments
 (0)