From a304a42f636179cef39a8ad75f47ec5ed408c682 Mon Sep 17 00:00:00 2001 From: andevellicus <762254+andevellicus@users.noreply.github.com> Date: Mon, 15 Jun 2020 22:13:13 -0400 Subject: [PATCH] Julia: fix deprecation in visualize.jl (#18515) * Update visualize.jl matchall has been deprecated as of Julia 1.3. Changes made to fix. * Cleaned * Update julia/src/visualize.jl * Update julia/src/visualize.jl Co-authored-by: Iblis Lin --- julia/src/visualize.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/julia/src/visualize.jl b/julia/src/visualize.jl index ddbb3c11fe9b..849b784779ea 100644 --- a/julia/src/visualize.jl +++ b/julia/src/visualize.jl @@ -207,7 +207,7 @@ function _format_graphviz_edge(io::IOBuffer, head, tail, attrs) _format_graphviz_attr(io, attrs) end function _extract_shape(str :: AbstractString) - shape = matchall(r"\d+", str) + shape = collect(m.match for m ∈ eachmatch(r"\d+", str)) shape = reverse(shape) # JSON in libmxnet has reversed shape (column vs row majoring) return "(" * join(shape, ",") * ")" end