MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SetModelBaseDir

Method SetModelBaseDir

tensorflow/lite/testing/test_runner.h:84–89  ·  view source on GitHub ↗

Set the base path for loading models.

Source from the content-addressed store, hash-verified

82
83 // Set the base path for loading models.
84 void SetModelBaseDir(const string& path) {
85 model_base_dir_ = path;
86 if (path[path.length() - 1] != '/') {
87 model_base_dir_ += "/";
88 }
89 }
90
91 // Return the full path of a model.
92 string GetFullPath(const string& path) { return model_base_dir_ + path; }

Callers 5

InitFunction · 0.80
TEST_PFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
InterpretFunction · 0.80

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected