fixes
This commit is contained in:
parent
1a5e050a88
commit
05ac3855f4
@ -1,6 +1,7 @@
|
|||||||
using Base: @get!
|
using Base: @get!
|
||||||
using DataFlow: Constant, constant, Split
|
using DataFlow: Constant, constant, Split
|
||||||
using DataFlow.Interpreter
|
using DataFlow.Interpreter
|
||||||
|
using DataFlow.Interpreter: stack
|
||||||
using Flux: imap
|
using Flux: imap
|
||||||
using TensorFlow: RawTensor, TFException
|
using TensorFlow: RawTensor, TFException
|
||||||
|
|
||||||
@ -19,7 +20,7 @@ graph(::typeof(σ), x) = nn.sigmoid(x)
|
|||||||
graph(::typeof(hcat), xs...) = concat(1, xs)
|
graph(::typeof(hcat), xs...) = concat(1, xs)
|
||||||
graph(::typeof(seq), xs, n) = TensorFlow.unpack(xs, num = n, axis = 1)
|
graph(::typeof(seq), xs, n) = TensorFlow.unpack(xs, num = n, axis = 1)
|
||||||
|
|
||||||
for op in (tanh, *, .*, .+, .-)
|
for op in (tanh, *, .*, .+)
|
||||||
@eval graph(::typeof($op), args...) = $op(args...)
|
@eval graph(::typeof($op), args...) = $op(args...)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user