Skip to content

Commit 13762e7

Browse files
committed
Remove check that if primal is TangentBundle so is coeff
1 parent cf137a0 commit 13762e7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/tangent.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,13 @@ end
202202
const TaylorBundle{N, B, P} = TangentBundle{N, B, TaylorTangent{P}}
203203

204204
function TaylorBundle{N, B}(primal::B, coeffs) where {N, B}
205-
# check_taylor_invariants(coeffs, primal, N) # TODO: renable this
205+
check_taylor_invariants(coeffs, primal, N)
206206
_TangentBundle(Val{N}(), primal, TaylorTangent(coeffs))
207207
end
208208

209209
function check_taylor_invariants(coeffs, primal, N)
210210
@assert length(coeffs) == N
211-
if isa(primal, TangentBundle)
212-
@assert isa(coeffs[1], TangentBundle)
213-
end
211+
214212
end
215213
@ChainRulesCore.non_differentiable check_taylor_invariants(coeffs, primal, N)
216214

0 commit comments

Comments
 (0)