| 258 | } |
| 259 | |
| 260 | ParameterCollectionStorage::ParameterCollectionStorage(float weight_decay_lambda) |
| 261 | : gradient_norm_scratch(nullptr), device_manager(get_device_manager()) { |
| 262 | weight_decay.set_lambda(weight_decay_lambda); |
| 263 | } |
| 264 | |
| 265 | ParameterCollectionStorage::~ParameterCollectionStorage() { |
| 266 | if (gradient_norm_scratch) |
nothing calls this directly
no test coverage detected