Skip to content

Commit 5468d28

Browse files
committed
drop ChainRulesCore 0.9 and remove deprecations
1 parent 48d45dc commit 5468d28

4 files changed

Lines changed: 4 additions & 7 deletions

File tree

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name = "ChainRulesOverloadGeneration"
22
uuid = "f51149dc-2911-5acf-81fc-2076a2a81d4f"
3-
version = "0.1.1"
3+
version = "0.1.2"
44

55
[deps]
66
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
77

88
[compat]
9-
ChainRulesCore = "0.9, 0.10"
9+
ChainRulesCore = "0.10.4"
1010
julia = "1"
1111

1212
[extras]

test/demos/forwarddiffzero.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function define_dual_overload(sig)
4444
# we use the function call overloading form as it lets us avoid namespacing issues
4545
# as we can directly interpolate the function type into to the AST.
4646
function (op::$opT)(dual_args::Vararg{Union{Dual, Float64}, $N}; kwargs...)
47-
ȧrgs = (NO_FIELDS, partial.(dual_args)...)
47+
ȧrgs = (NoTangent(), partial.(dual_args)...)
4848
args = (op, primal.(dual_args)...)
4949
y, ẏ = frule(ȧrgs, args...; kwargs...)
5050
return Dual(y, ẏ) # if y, ẏ are not `Float64` this will error.

test/demos/reversediffzero.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ end
116116
function ChainRulesCore.rrule(::typeof(*), x::Number, y::Number)
117117
function times_pullback(ΔΩ)
118118
# we will use thunks here to show we handle them fine.
119-
return (NO_FIELDS, @thunk(ΔΩ * y'), @thunk(x' * ΔΩ))
119+
return (NoTangent(), @thunk(ΔΩ * y'), @thunk(x' * ΔΩ))
120120
end
121121
return x * y, times_pullback
122122
end

test/runtests.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
using ChainRulesCore
22
using ChainRulesOverloadGeneration
3-
# resolve conflicts while this code exists in both.
4-
const on_new_rule = ChainRulesOverloadGeneration.on_new_rule
5-
const refresh_rules = ChainRulesOverloadGeneration.refresh_rules
63

74
using Test
85

0 commit comments

Comments
 (0)