# codes

## 

#### Meta train the DM/RP/RP_si models

train_optimizer() function in codes/torchL2O/meta.py

#### Evaluate the optimization performance: 

eva_l2o_optimizer() function in codes/torchL2O/meta.py

#### RP model implementations:

RPOptimizer in codes/torchL2O/meta.py

#### RP_si model implementations:

same as RP, set "magic=0"； or more diverse input can be enabled by setting "grad_features=mt+gt+mom5+mom99" etc.

#### DM model implementations:

DMOptimizer  in codes/torchL2O/utils.py

## 

#### SR implementations:

codes/torchL2O/sr_train.py

codes/torchL2O/sr_test_cal_r2.py

codes/torchL2O/sr_test_get_latex.py

#### other SR options and the workflow:

codes/torchL2O/stage023.py, stage023_resnet.py, srUtils.py

#### Large scale Evaluation on ResNet50/152/MobineNetV2:

evaluate_torch_optimizer/torchCifarZoo.py



