MCPcopy Create free account
hub / github.com/clab/dynet / ParameterCollectionStorage

Method ParameterCollectionStorage

dynet/model.cc:260–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260ParameterCollectionStorage::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
265ParameterCollectionStorage::~ParameterCollectionStorage() {
266 if (gradient_norm_scratch)

Callers

nothing calls this directly

Calls 2

get_device_managerFunction · 0.85
set_lambdaMethod · 0.80

Tested by

no test coverage detected