| 217 | } |
| 218 | |
| 219 | bool 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 | |
| 233 | bool MLGOHeuristics::reload_from_stream(std::istream &in) |
| 234 | { |
no test coverage detected