Skip to content

Commit a2f5673

Browse files
committed
feat: turn off node tangent assertions
1 parent 49713d6 commit a2f5673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ChainRules.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ struct NodeTangent{T,N<:AbstractExpressionNode{T},A<:AbstractArray{T}} <: Abstra
1212
gradient::A
1313
end
1414
function Base.:+(a::NodeTangent, b::NodeTangent)
15-
@assert a.tree == b.tree # TODO: Remove this check
15+
# @assert a.tree == b.tree
1616
return NodeTangent(a.tree, a.gradient + b.gradient)
1717
end
1818
Base.:*(a::Number, b::NodeTangent) = NodeTangent(b.tree, a * b.gradient)

0 commit comments

Comments
 (0)