Skip to content

Proposal: Move params to Zygote #1900

@cortner

Description

@cortner

I'm just starting to look into the Flux eco-systems, primarily for Zygote rather than Flux itself and I was struck that Params lives in Zygote while params lives in Flux. This form of differentiation

Zygote.gradient( () -> loss(...),  params(model) )

is very convenient and elegant and useful for any nested structure, not just those built from Zygote.

Is there any chance to simply move this functionality into Zygote so that it can be used without depending on Flux? If I understand it correctly that would not even break backward compatibility.

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