Skip to content

Commit 34a1bbe

Browse files
committed
Remove the .+ 0 hack
Ref: JuliaDiff/ChainRulesCore.jl#90
1 parent d56978d commit 34a1bbe

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1010
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1111

1212
[compat]
13-
ChainRulesCore = "0.5"
13+
ChainRulesCore = "0.5.1"
1414
FiniteDifferences = "^0.7"
1515
Reexport = "0.2"
1616
Requires = "0.5.2, 1"

test/test_util.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ function frule_test(f, xẋs::Tuple{Any, Any}...; rtol=1e-9, atol=1e-9, fdm=_fdm
6969
xs, ẋs = collect(zip(xẋs...))
7070
dself = Zero()
7171
Ω, dΩ_ad = ChainRules.frule(f, xs..., dself, ẋs...)
72-
dΩ_ad = dΩ_ad .+ 0
7372
@test f(xs...) == Ω
7473

7574
# Correctness testing via finite differencing.

0 commit comments

Comments
 (0)