Skip to content

Commit 8c18f06

Browse files
authored
Merge pull request #31 from FluxML/bc/unthunk-hotfix
Hotfix: remove extra `unthunk_tangent` methods
2 parents e1dbef9 + f713914 commit 8c18f06

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ZygoteRules"
22
uuid = "700de1a5-db45-46bc-99cf-38207098b444"
3-
version = "0.2.6"
3+
version = "0.2.7"
44

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

src/adjoint.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ function unthunk_tangent end
3737
@inline unthunk_tangent(x) = x
3838
@inline unthunk_tangent(x::Tuple) = map(unthunk_tangent, x)
3939
@inline unthunk_tangent(x::NamedTuple) = map(unthunk_tangent, x)
40-
@inline unthunk_tangent(x::AbstractThunk) = wrap_chainrules_output(unthunk(x))
41-
@inline unthunk_tangent(x::NTuple{N,<:Number}) where N = x
42-
@inline unthunk_tangent(x::AbstractArray{<:Number,N}) where N = x
43-
@inline unthunk_tangent(x::AbstractArray) = map(unthunk_tangent, x)
44-
unthunk_tangent(d::IdDict) = IdDict([unthunk_tangent(k) => unthunk_tangent(v) for (k, v) in d])
45-
@non_differentiable unthunk_tangent(::IdDict)
4640

4741

4842
function gradm(ex, mut = false, keepthunks = false)

0 commit comments

Comments
 (0)