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

Method sort

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

Source from the content-addressed store, hash-verified

170 sigs.clear(); whiches.clear(); sorted=false;
171 }
172 void sort() {
173 if (sorted) { return; }
174 std::sort(sigs.begin(), sigs.end(), [](std::pair<Sig, int> s1, std::pair<Sig, int> s2) {return s1.first < s2.first;});
175 sorted=true;
176 }
177 int sig2type(int sig) { return whiches[sig]; }
178 int size() { return sigs.size(); }
179 std::vector<std::pair<Sig,int> > sigs;

Callers 2

rnnlm-batch.pyFile · 0.80
rnnlm-batch.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected