don't do + twice

This commit is contained in:
Mike J Innes 2016-12-15 23:08:56 +00:00
parent 6114b70f76
commit 42ce2fadf1

View File

@ -17,7 +17,6 @@ graph(::typeof(relu), x) = nn.relu(x)
graph(::typeof(σ), x) = nn.sigmoid(x)
graph(::typeof(hcat), xs...) = concat(1, xs)
graph(::typeof(seq), xs, n) = TensorFlow.unpack(xs, num = n, axis = 1)
graph(::typeof(+), args...) = +(args...)
for op in (tanh, *, .*, +, -)
@eval graph(::typeof($op), args...) = $op(node(args)...)