Skip to content

Commit

Permalink
Julia: fix deprecation in visualize.jl (apache#18515)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
2 people authored and bgawrych committed Jun 23, 2020
1 parent beb382a commit a304a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion julia/src/visualize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a304a42

Please sign in to comment.