MCPcopy Create free account
hub / github.com/ai-techsystems/deepC / paramFile

Method paramFile

src/codegen/cppCodeGen.cpp:85–92  ·  view source on GitHub ↗

\brief get parametre file, given term/param name

Source from the content-addressed store, hash-verified

83
84// \brief get parametre file, given term/param name
85std::string dnnc::cppCodeGen::paramFile(std::string param_name) {
86 // check if there is a param file to load in the bundle dir.
87 struct stat buffer;
88 std::string param_file =
89 (_bundleDir.size() ? _bundleDir + FS_PATH_SEPARATOR : "") + param_name;
90
91 return (stat(param_file.c_str(), &buffer) == 0) ? param_file : "";
92}
93
94std::string dnnc::cppCodeGen::nodeName(node *n) {
95 if (n->ntype() == node::OPERATOR)

Callers

nothing calls this directly

Calls 2

statClass · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected