This commit is contained in:
Mike J Innes 2017-04-04 19:19:08 +01:00
parent f8e1f20728
commit efa8d75ea3

View File

@ -12,7 +12,7 @@ end
function makegraph(graph, args)
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) :
v
end