We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0e1de4 commit 9957226Copy full SHA for 9957226
src/tangent.jl
@@ -427,7 +427,8 @@ Creates a bundle with a zero tangent.
427
"""
428
struct zero_bundle{N} end
429
function (::zero_bundle{N})(primal) where N
430
- if zero_tangent(primal) isa AbstractZero
+ # We still use a Uniform bundle e.g. if primal has NoTangent
431
+ if zero_tangent(primal) isa AbstractZero
432
return UniformBundle{N}(primal, zero_tangent(primal) )
433
else
434
# Note: it is important that zero_tangent(primal) is called in ntuple
0 commit comments