Skip to content

Custom rules with broadcasting #550

Closed
@Antomek

Description

@Antomek

Hello all,

Thank you for all your work on ChainRules, it is shaping up to be very useful.
I recently wrote my first frule/rrule for some (scalar) function, without using the @scalar_rule macro.
It worked fine for 1D case, but I noticed it did not work with broadcasting (as in, my custom rules were never used).

Is there a straighforward way of getting custom rules to play nicely with broadcasting, or did I miss something obvious?
It might be worth adding something to the docs regarding this, since broadcasting seems to be central Julia concept.

Many thanks!

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