| 50 | from_value(from_json_string(read_string(pc_path)), cache); |
| 51 | } |
| 52 | void problem_cache::save() const |
| 53 | { |
| 54 | auto pc_path = string_value_of(MIGRAPHX_PROBLEM_CACHE{}); |
| 55 | if(pc_path.empty()) |
| 56 | return; |
| 57 | write_string(pc_path, to_pretty_json_string(to_value(cache))); |
| 58 | } |
| 59 | |
| 60 | static value create_key(const std::string& name, const value& problem) |
| 61 | { |
no test coverage detected