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

Method XORModel

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

It is important to have a null default constructor for the class, as we would first need to read the class object from the file, followed by the dynet model which has saved parameters.

Source from the content-addressed store, hash-verified

22 // we would first need to read the class object from the file, followed by
23 // the dynet model which has saved parameters.
24 XORModel() {}
25
26 XORModel(unsigned hidden_len, ParameterCollection& m) {
27 hidden_size = hidden_len;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected