don't do + twice
This commit is contained in:
parent
6114b70f76
commit
42ce2fadf1
@ -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)...)
|
||||
|
Loading…
Reference in New Issue
Block a user