| 43 | |
| 44 | void migraphx_to_value(value& v, const literal& l) { raw_data_to_value(v, l); } |
| 45 | void migraphx_from_value(const value& v, literal& l) |
| 46 | { |
| 47 | auto s = migraphx::from_value<shape>(v.at("shape")); |
| 48 | l = literal(s, v.at("data").get_binary().data()); |
| 49 | } |
| 50 | |
| 51 | void migraphx_to_value(value& v, const argument& a) { raw_data_to_value(v, a); } |
| 52 | void migraphx_from_value(const value& v, argument& a) |
nothing calls this directly
no test coverage detected