don't do gradients for cyclic code
This commit is contained in:
parent
d5b3b156ae
commit
3b38b8696d
@ -14,6 +14,7 @@ function ∇v(v::Vertex, Δ)
|
||||
end
|
||||
|
||||
function invert(v::IVertex, Δ, out = d())
|
||||
@assert !iscyclic(v)
|
||||
if isconstant(v)
|
||||
@assert !haskey(out, value(v))
|
||||
out[value(v)] = il(Δ)
|
||||
|
Loading…
Reference in New Issue
Block a user