neater
This commit is contained in:
parent
f8e1f20728
commit
efa8d75ea3
@ -12,7 +12,7 @@ end
|
|||||||
|
|
||||||
function makegraph(graph, args)
|
function makegraph(graph, args)
|
||||||
graph = prewalk(graph) do v
|
graph = prewalk(graph) do v
|
||||||
value(v) isa Constant && (i = findfirst(x->x==value(v).value, args)) ≠ 0 ?
|
value(v) isa Constant && (i = findfirst(args, value(v).value)) ≠ 0 ?
|
||||||
inputnode(i) :
|
inputnode(i) :
|
||||||
v
|
v
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user