tf cycle conversion error
This commit is contained in:
parent
c5a64391a1
commit
217e28653a
@ -54,6 +54,7 @@ end
|
|||||||
function graph(params::Associative, model, args...)
|
function graph(params::Associative, model, args...)
|
||||||
g = Flux.graph(model)
|
g = Flux.graph(model)
|
||||||
g == nothing && return graph(model, args...)
|
g == nothing && return graph(model, args...)
|
||||||
|
Flow.iscyclic(g) && error("This model has a cycle; try unrolling it first.")
|
||||||
graph(params, g, args...)
|
graph(params, g, args...)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user