KEMBAR78
Optimizer state_dict documentation · Issue #60121 · pytorch/pytorch · GitHub
Skip to content

Optimizer state_dict documentation #60121

@awgu

Description

@awgu

📚 Documentation

Refer to: https://pytorch.org/docs/stable/generated/torch.optim.Optimizer.state_dict.html#torch.optim.Optimizer.state_dict
The Optimizer.state_dict consists of state and param_groups. param_groups is a list of dict, where each dict in the list is a param group (see here). The documentation incorrectly states that param_groups is a dict containing all parameter groups; rather, it is a list containing all parameter groups (where each parameter group is a dict).

cc @brianjo @mruberry @vincentqb @iramazanli

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: docsRelated to our documentation, both in docs/ and docblocksmodule: optimizerRelated to torch.optimtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions