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

Method add_node

dynet/sig.h:57–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 int* tail;
56
57 void add_node(unsigned i) { *(tail++) = -(int)i; }
58 void add_dim(const Dim &d) {
59 *(tail++) = -(int)d.nd;
60 memcpy(tail, d.d, d.nd * sizeof(unsigned int));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected