Shortcuts

Class OptimizerParamGroup

Page Contents

Class Documentation

class torch::optim::OptimizerParamGroup

Stores parameters in the param_group and stores a pointer to the OptimizerOptions.

Public Functions

OptimizerParamGroup(const OptimizerParamGroup &param_group)
OptimizerParamGroup(std::vector<Tensor> params)
OptimizerParamGroup(std::vector<Tensor> params, std::unique_ptr<OptimizerOptions> options)
bool has_options() const
OptimizerOptions &options()
const OptimizerOptions &options() const
void set_options(std::unique_ptr<OptimizerOptions> options)
std::vector<Tensor> &params()
const std::vector<Tensor> &params() const

Protected Attributes

std::vector<Tensor> params_
std::unique_ptr<OptimizerOptions> options_

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources