You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
Your code uses x .+= y, so you should know that in Julia 0.5 this has changed meaning to be equivalent to broadcast!(identity, x, x .+ y), so that it mutates the x array (see JuliaLang/julia#17510 … in Julia 0.6 the whole operation will occur in-place without temporaries). So .+ should only be used if the left-hand side is a mutable array, and you don't mind mutating it.
At first glance, it looks like you may need to revise some code. In your process_node function, ref_assign_map is used to rewrite x .+= y to x = x .+ y, whereas in Julia 0.5 this is now x .= x .+ y and mutates the x array.
The text was updated successfully, but these errors were encountered:
Your code uses
x .+= y
, so you should know that in Julia 0.5 this has changed meaning to be equivalent tobroadcast!(identity, x, x .+ y)
, so that it mutates thex
array (see JuliaLang/julia#17510 … in Julia 0.6 the whole operation will occur in-place without temporaries). So.+
should only be used if the left-hand side is a mutable array, and you don't mind mutating it.At first glance, it looks like you may need to revise some code. In your
process_node
function,ref_assign_map
is used to rewritex .+= y
tox = x .+ y
, whereas in Julia 0.5 this is nowx .= x .+ y
and mutates thex
array.The text was updated successfully, but these errors were encountered: