Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox authored Feb 1, 2024
1 parent c0e1de4 commit 9957226
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tangent.jl
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,8 @@ Creates a bundle with a zero tangent.
"""
struct zero_bundle{N} end
function (::zero_bundle{N})(primal) where N
if zero_tangent(primal) isa AbstractZero
# We still use a Uniform bundle e.g. if primal has NoTangent
if zero_tangent(primal) isa AbstractZero
return UniformBundle{N}(primal, zero_tangent(primal) )
else
# Note: it is important that zero_tangent(primal) is called in ntuple
Expand Down

0 comments on commit 9957226

Please sign in to comment.