Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.
This repository was archived by the owner on Mar 14, 2026. It is now read-only.

Julia 0.7 version #8

Description

@dfdx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions