From d0fd9cd622e10c154d3ad66ecfffa60a1e513da9 Mon Sep 17 00:00:00 2001 From: Lyndon White Date: Wed, 24 May 2017 10:35:17 +0800 Subject: [PATCH] Replace deprecated `unpack` with `unstack` --- src/backend/tensorflow/graph.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/tensorflow/graph.jl b/src/backend/tensorflow/graph.jl index 4afc7c03..86c082b5 100644 --- a/src/backend/tensorflow/graph.jl +++ b/src/backend/tensorflow/graph.jl @@ -20,7 +20,7 @@ graph(::typeof(softmax), x) = nn.softmax(x) 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(seq), xs, n) = TensorFlow.unstack(xs, num = n, axis = 1) graph(::typeof(sum), x, dim=nothing) = TensorFlow.reduce_sum(x;axis=dim) graph(::typeof(prod), x, dim=nothing) = TensorFlow.reduce_prod(x;axis=dim) graph(::typeof(min), x, dim=nothing) = TensorFlow.reduce_min(x;axis=dim)