From 5ee6e8f504a301013c89a7a28802eca2363b4619 Mon Sep 17 00:00:00 2001 From: Mike J Innes Date: Mon, 19 Jun 2017 16:48:52 -0700 Subject: [PATCH] overload correct repeated --- src/backend/mxnet/graph.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/mxnet/graph.jl b/src/backend/mxnet/graph.jl index 5e532864..06062eb8 100644 --- a/src/backend/mxnet/graph.jl +++ b/src/backend/mxnet/graph.jl @@ -47,7 +47,7 @@ graph(::typeof(vcat), a...) = graph(cat, 1, a...) graph(::typeof(map), f, xss::Tuple...) = map(f, xss...) graph(::typeof(getindex), t::Tuple, n::Integer) = t[n] graph(::typeof(sum), xs::Tuple) = reduce((a, b) -> graph(broadcast, +, a, b), xs) -graph(::typeof(repeated), x, n) = ntuple(_ -> x, n) +graph(::typeof(Base.Iterators.repeated), x, n) = ntuple(_ -> x, n) a::mx.SymbolicNode ∘ b::mx.SymbolicNode = mx.broadcast_mul(a, b)