Skip to content

Commit 52a5583

Browse files
staticfloatoxinabox
authored andcommitted
Revert "renable configured frules"
This reverts commit fc70f36.
1 parent d9deed2 commit 52a5583

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

test/forward.jl

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -209,22 +209,4 @@ end
209209
)
210210
end
211211

212-
213-
@testset "configured frule" begin
214-
my_func(x) = sin(x)
215-
frule_hits = 0
216-
function ChainRulesCore.frule(config::RuleConfig{>:HasForwardsMode}, (_, dx), ::typeof(my_func), x)
217-
res=my_func(x)
218-
_, der_fwd = ChainRulesCore.frule_via_ad(config, (ChainRulesCore.NoTangent(), dx), sin, x)
219-
frule_hits +=1
220-
return res, der_fwd
221-
end
222-
223-
let var"'" = Diffractor.PrimeDerivativeFwd
224-
@assert frule_hits == 0
225-
@test my_func'(1.0) == cos(1.0)
226-
@test frule_hits == 1
227-
end
228-
end
229-
230212
end # module

0 commit comments

Comments
 (0)