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
For anyone interested: in Julia 0.7 there's no more need in unfusing hack, instead one can overload broadcasting directly. The relevant section of manual is here. The shortest and simplest way to prevent fusion is to overload Broadcast.broadcasted (note -ed) method, e.g. for some custom type TrackedArray:
function Broadcast.broadcasted(::typeof(+), x::TrackedArray, y::TrackedArray)
# do whatever you need
return TrackedArray(...) # eagerly return a new object, avoiding lazy fusion
end
The text was updated successfully, but these errors were encountered:
For anyone interested: in Julia 0.7 there's no more need in unfusing hack, instead one can overload broadcasting directly. The relevant section of manual is here. The shortest and simplest way to prevent fusion is to overload
Broadcast.broadcasted
(note-ed
) method, e.g. for some custom typeTrackedArray
:The text was updated successfully, but these errors were encountered: