pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::ParamGroupSet Class Reference

The group machinery SGDOptimizer and AdamOptimizer share. More...

#include <param_groups.hpp>

Classes

struct  Assignment
 One parameter with the settings that apply to it this step. More...
 

Public Member Functions

void set (std::vector< ParamGroup > groups)
 
std::vector< ParamGroup > & groups ()
 
const std::vector< ParamGroup > & groups () const
 
std::vector< Assignment > resolve (Module &module, float default_learning_rate, float default_weight_decay) const
 Every parameter of module, in parameters() order, with its group's settings.
 

Detailed Description

The group machinery SGDOptimizer and AdamOptimizer share.

Member Function Documentation

◆ groups() [1/2]

std::vector< ParamGroup > & pulsatrix::ParamGroupSet::groups ( )
inline

◆ groups() [2/2]

const std::vector< ParamGroup > & pulsatrix::ParamGroupSet::groups ( ) const
inline

◆ resolve()

std::vector< Assignment > pulsatrix::ParamGroupSet::resolve ( Module &  module,
float  default_learning_rate,
float  default_weight_decay 
) const
inline

Every parameter of module, in parameters() order, with its group's settings.

Note
A parameter a legacy module reports without a name gets the default settings.
Exceptions
std::invalid_argumentif a group's settings were changed to invalid values.

◆ set()

void pulsatrix::ParamGroupSet::set ( std::vector< ParamGroup >  groups)
inline
Exceptions
std::invalid_argumentif a group has no selector or an invalid setting.

The documentation for this class was generated from the following file: