Skip to content

Commit b9e8276

Browse files
committed
Remove old warning about map
Closes #798
1 parent 0923b1e commit b9e8276

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-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.72.5"
3+
version = "1.72.6"
44

55
[deps]
66
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

src/rulesets/Base/base.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,6 @@ function rrule(config::RuleConfig{>:HasReverseMode}, ::typeof(map), f::F, xs::Tu
249249
y = map(first, hobbits)
250250
num_xs = Val(length(xs))
251251
paddings = map(x -> ntuple(Returns(NoTangent()), (length(x) - length_y)), xs)
252-
all(isempty, paddings) || @error """map(f, xs::Tuple...) does not allow mistmatched lengths!
253-
But its `rrule` does; when JuliaLang/julia #42216 is fixed this warning should be removed."""
254252
function map_pullback(dy_raw)
255253
dy = unthunk(dy_raw)
256254
# We want to call the pullbacks in `rrule_via_ad` in reverse sequence to the forward pass:

0 commit comments

Comments
 (0)