Skip to content

Commit cc107c7

Browse files
committed
export StructuralTangent
1 parent ca8820e commit cc107c7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/ChainRulesCore.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export ProjectTo, canonicalize, unthunk, zero_tangent # tangent operations
1414
export add!!, is_inplaceable_destination # gradient accumulation operations
1515
export ignore_derivatives, @ignore_derivatives
1616
# tangents
17-
export Tangent, MutableTangent, NoTangent, InplaceableThunk, Thunk, ZeroTangent, AbstractZero, AbstractThunk
17+
export StructuralTangent, Tangent, MutableTangent, NoTangent, InplaceableThunk, Thunk, ZeroTangent, AbstractZero, AbstractThunk
1818

1919
include("debug_mode.jl")
2020

src/tangent_types/structural_tangent.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ as an object with mirroring fields.
1010
`MutableTangent` is an experimental feature.
1111
Thus use of `StructuralTangent` (rather than `Tangent` directly) is also experimental.
1212
While this notice remains it may have changes in behavour, and interface in any _minor_ version of ChainRulesCore.
13-
1413
"""
1514
abstract type StructuralTangent{P} <: AbstractTangent end
1615

@@ -447,4 +446,4 @@ Base.hash(tangent::MutableTangent, h::UInt64) = hash(backing(tangent), h)
447446
function Base.:(==)(t1::MutableTangent{T1}, t2::MutableTangent{T2}) where {T1, T2}
448447
typeintersect(T1, T2) == Union{} && return false
449448
backing(t1)==backing(t2)
450-
end
449+
end

0 commit comments

Comments
 (0)