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

Function valid_parameter

dynet/model.cc:125–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125bool valid_parameter(const std::string & s) {
126 auto it = std::find_if(s.begin(), s.end(), [] (char ch) { return ch == '/' || ch == '_'; });
127 return it == s.end();
128}
129
130LookupParameterStorage::LookupParameterStorage(unsigned n, const Dim& d, const ParameterInit & init,
131 const std::string & name, Device *dev)

Callers 3

add_subcollectionMethod · 0.85
add_parametersMethod · 0.85
add_lookup_parametersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected