Skip to content

Commit 9957226

Browse files
authored
Add comment
1 parent c0e1de4 commit 9957226

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tangent.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,8 @@ Creates a bundle with a zero tangent.
427427
"""
428428
struct zero_bundle{N} end
429429
function (::zero_bundle{N})(primal) where N
430-
if zero_tangent(primal) isa AbstractZero
430+
# We still use a Uniform bundle e.g. if primal has NoTangent
431+
if zero_tangent(primal) isa AbstractZero
431432
return UniformBundle{N}(primal, zero_tangent(primal) )
432433
else
433434
# Note: it is important that zero_tangent(primal) is called in ntuple

0 commit comments

Comments
 (0)