MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / reload_from_file

Method reload_from_file

src/runtime/CL/mlgo/MLGOHeuristics.cpp:219–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219bool MLGOHeuristics::reload_from_file(const std::string &filename)
220{
221 std::ifstream fs;
222 fs.exceptions(std::ifstream::badbit);
223 fs.open(filename, std::ios::in);
224 if (!fs.is_open())
225 {
226 ARM_COMPUTE_LOG_INFO_MSG_WITH_FORMAT_CORE("Cannot open DotMLGO file %s. Use default heuristics instead",
227 filename.c_str());
228 return _valid = false;
229 }
230 return reload_from_stream(fs);
231}
232
233bool MLGOHeuristics::reload_from_stream(std::istream &in)
234{

Callers 3

populate_mlgoFunction · 0.45
setup_backend_contextMethod · 0.45
mainFunction · 0.45

Calls 2

openMethod · 0.45
is_openMethod · 0.45

Tested by

no test coverage detected