Skip to content

Commit 6723bcd

Browse files
Use renamed ChainRulesCore
1 parent 70c1ce8 commit 6723bcd

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ uuid = "082447d4-558c-5d27-93f4-14fc19e9eca2"
33
version = "0.1.0"
44

55
[deps]
6-
AbstractChainRules = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
6+
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
88
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
99
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1010
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1111

1212
[compat]
13+
ChainRulesCore = "^0.1"
1314
FDM = "^0.6"
1415
julia = "^1.0"
15-
AbstractChainRules = "^0.1"
1616

1717
[extras]
1818
FDM = "e25cca7e-83ef-51fa-be6c-dfe2a3123128"

src/ChainRules.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
module ChainRules
22
using Reexport
3-
@reexport using AbstractChainRules
3+
@reexport using ChainRulesCore
44
# basically everything this package does is overloading these
5-
import AbstractChainRules: rrule, frule
5+
import ChainRulesCore: rrule, frule
66

77
# deal with name clashes
8-
const accumulate = AbstractChainRules.accumulate
9-
const accumulate! = AbstractChainRules.accumulate!
8+
const accumulate = ChainRulesCore.accumulate
9+
const accumulate! = ChainRulesCore.accumulate!
1010

1111

1212
using LinearAlgebra
@@ -36,7 +36,7 @@ include("rulesets/LinearAlgebra/structured.jl")
3636
include("rulesets/LinearAlgebra/factorization.jl")
3737

3838
# Note: The following is only required because package authors do not use
39-
# declare their own rules using AbstractChainRules. For arguably good reasons.
39+
# declare their own rules using ChainRulesCore. For arguably good reasons.
4040
# so we define them here for them.
4141
function __init__()
4242
@require NaNMath="77ba4419-2d1f-58cd-9bb1-8ffee604a2e3" begin

src/rulesets/packages/NaNMath.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module NaNMathGlue
2-
using AbstractChainRules
2+
using ChainRulesCore
33
using NaNMath
44

55
@scalar_rule(NaNMath.sin(x), NaNMath.cos(x))

src/rulesets/packages/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
In the ideal world, everyone would write ChainRules for their functions
44
in the packages where they are defined.
5-
By depending only on [AbstractChainRules.jl](https://github.com/JuliaDiff/AbstractChainRules.jl)
5+
By depending only on [ChainRulesCore.jl](https://github.com/JuliaDiff/ChainRulesCore.jl)
66
We do not live in an ideal world, so some of those definitions live here.
77
In the long-term the plan is to move them out of this repo.

src/rulesets/packages/SpecialFunctions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module SpecialFunctionsGlue
2-
using AbstractChainRules
2+
using ChainRulesCore
33
using SpecialFunctions
44

55

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using Base.Broadcast: broadcastable
33
import LinearAlgebra: dot
44

55
# For testing purposes we use a lot of
6-
using AbstractChainRules: add, cast, extern, accumulate, accumulate!, store!, @scalar_rule,
6+
using ChainRulesCore: add, cast, extern, accumulate, accumulate!, store!, @scalar_rule,
77
Wirtinger, wirtinger_primal, wirtinger_conjugate, add_wirtinger, mul_wirtinger,
88
Zero, add_zero, mul_zero, One, add_one, mul_one, Casted, cast, add_casted, mul_casted,
99
DNE, Thunk, Casted, DNERule

0 commit comments

Comments
 (0)