fix exec forward pass
This commit is contained in:
parent
4df97bf607
commit
4de61fc377
@ -69,8 +69,8 @@ function executor(graph::Graph, input...)
|
||||
return exec
|
||||
end
|
||||
|
||||
function (exec::Exec)(input)
|
||||
copy!(exec.args[exec.graph.input[1]], input)
|
||||
function (exec::Exec)(input...)
|
||||
foreach(kv -> copy!(exec.args[kv[1]], kv[2]), dictt(exec.graph.input, input))
|
||||
mx.forward(exec.exec, is_train = true)
|
||||
mxungroup(exec.graph.output, copy(exec.outs))
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user