Skip to content

Direct Inference using TrainState #970

@avik-pal

Description

@avik-pal

Proposed API

(y, st), train_state = train_state(x)

Benefits

  1. This makes it very simple to run inference. Simply call train_state(x) and we take care of Lux.testmode(st), etc.
  2. Allows us to cache the compiled inference function once feat: compile training loop automatically using reactant #969 lands

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