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

Method NewGraph

examples/read-write/train_read-write.cc:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 void NewGraph(ComputationGraph& cg) {
39 W = parameter(cg, pW);
40 b = parameter(cg, pb);
41 V = parameter(cg, pV);
42 a = parameter(cg, pa);
43 }
44
45 float Train(const vector<dynet::real>& input, dynet::real gold_output, SimpleSGDTrainer& trainer) {
46 ComputationGraph cg;

Callers

nothing calls this directly

Calls 1

parameterFunction · 0.50

Tested by

no test coverage detected