Skip to content

Extend scalar_rule to handle broadcast #271

Open
@CarloLucibello

Description

@CarloLucibello

As a follow up to FluxML/NNlib.jl#257 and FluxML/NNlib.jl#258,
I wish the @scalar_rule macro could be extended with an optional keyword argument so that it also defines
the broadcasted version of a rule, so something like

@scalar_rule  tanh(x)  1 - Ω^2    broadcast=true

I would have attempted a PR, but I quickly realized that this above my very very little macro expertise :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    rule definition helperrelating to helpers for declaring rulesspeculativefairly out there ideas for consideration in longer term

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions