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

Method alloc_impl

dynet/training.cc:688–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686 update_rule(gscale, {&p->all_values, &p->all_grads, &vlp[idx].all_h});
687}
688unsigned MomentumSGDTrainer::alloc_impl() {
689 allocate_shadow_parameters(*model, aux_allocated, vp);
690 return vp.size();
691}
692unsigned MomentumSGDTrainer::alloc_lookup_impl() {
693 allocate_shadow_lookup_parameters(*model, aux_allocated_lookup, vlp);
694 return vlp.size();

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45

Tested by

no test coverage detected