Skip to content

Commit 8706f69

Browse files
authored
Limit evalpoly rule signatures to those in Base (#575)
* Limit to signatures defined in base * Increment patch version number
1 parent b197e62 commit 8706f69

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ChainRules"
22
uuid = "082447d4-558c-5d27-93f4-14fc19e9eca2"
3-
version = "1.20"
3+
version = "1.20.1"
44

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

src/rulesets/Base/evalpoly.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
if VERSION v"1.4"
3-
function frule((_, ẋ, ṗ), ::typeof(evalpoly), x, p)
3+
function frule((_, ẋ, ṗ), ::typeof(evalpoly), x, p::Union{Tuple,AbstractVector})
44
Δx, Δp = ẋ, unthunk(ṗ)
55
N = length(p)
66
@inbounds y = p[N]
@@ -12,7 +12,7 @@ if VERSION ≥ v"1.4"
1212
return y, Δy
1313
end
1414

15-
function rrule(::typeof(evalpoly), x, p)
15+
function rrule(::typeof(evalpoly), x, p::Union{Tuple,AbstractVector})
1616
y, ys = _evalpoly_intermediates(x, p)
1717
project_x = ProjectTo(x)
1818
project_p = p isa Tuple ? identity : ProjectTo(p)

0 commit comments

Comments
 (0)