Skip to content

Support restoring callbacks' status when predicting #20137

@zihaozou

Description

@zihaozou

Description & Motivation

I implemented EMA using Callback. However, when predicting, the callback's weight isn't loaded back

Pitch

remove the condition at:

if self.trainer.state.fn == TrainerFn.FITTING:

Alternatives

No response

Additional context

No response

cc @Borda

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIs an improvement or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions