(self, param_init_net, weight_decay, trust, lr_max)
| 283 | ) |
| 284 | |
| 285 | def create_lars_inputs(self, param_init_net, weight_decay, trust, lr_max): |
| 286 | wd = param_init_net.ConstantFill( |
| 287 | [], "weight_decay", shape=[1], value=weight_decay |
| 288 | ) |
| 289 | trust = param_init_net.ConstantFill([], "trust", shape=[1], value=trust) |
| 290 | lr_max = param_init_net.ConstantFill([], "lr_max", shape=[1], value=lr_max) |
| 291 | return wd, trust, lr_max |
| 292 | |
| 293 | |
| 294 | class SgdOptimizer(Optimizer): |