You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ib...@apache.org on 2020/06/16 02:16:03 UTC

[incubator-mxnet] branch master updated: Julia: fix deprecation in visualize.jl (#18515)

This is an automated email from the ASF dual-hosted git repository.

iblis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 72a54e7  Julia: fix deprecation in visualize.jl (#18515)
72a54e7 is described below

commit 72a54e7a5f427dc73fbd1cb826ff944d9aa82573
Author: andevellicus <76...@users.noreply.github.com>
AuthorDate: Mon Jun 15 22:13:13 2020 -0400

    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 <ib...@hs.ntnu.edu.tw>
---
 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 ddbb3c1..849b784 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