fix for empty dicts
This commit is contained in:
parent
54011045e7
commit
b49daa367f
@ -90,6 +90,6 @@ function mx.FeedForward(model::Flux.Model; input = :data, label = :softmax, cont
|
||||
model = rewrite_softmax(model, label)
|
||||
vars, stacks, node = tograph(model, mx.Variable(input))
|
||||
ff = mx.FeedForward(node, context = context)
|
||||
ff.arg_params = mxargs(vars)
|
||||
isempty(vars) || (ff.arg_params = mxargs(vars))
|
||||
return ff
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user