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
oe =10# some variable I was using earlier
A =ones(5,5)
A::Array# A is clearly an array here
glrm =GLRM(A, losses, rx, ry, k) # define some losses, regs, etc.
X,Y,ch =fit!(glrm)
A::Array# This throws an error because A has been overwritten by fit!() in this scope during broadcasting of variables to all processes!
oe ==10# this returns FALSE because oe has also been overwritten!
The text was updated successfully, but these errors were encountered:
shareglrm uses global variables, which is definitely terrible programming style and is why these local variables get overwritten. I don't know how to avoid it given current parallel programming primitives in Julia. Suggestions welcome.
The text was updated successfully, but these errors were encountered: