| 1148 | } |
| 1149 | |
| 1150 | extern "C" migraphx_status |
| 1151 | migraphx_shape_equal(bool* out, const_migraphx_shape_t shape, const_migraphx_shape_t x) |
| 1152 | { |
| 1153 | auto api_error_result = migraphx::try_([&] { |
| 1154 | if(shape == nullptr) |
| 1155 | MIGRAPHX_THROW(migraphx_status_bad_param, "Bad parameter shape: Null pointer"); |
| 1156 | if(x == nullptr) |
| 1157 | MIGRAPHX_THROW(migraphx_status_bad_param, "Bad parameter x: Null pointer"); |
| 1158 | *out = migraphx::equal((shape->object), (x->object)); |
| 1159 | }); |
| 1160 | return api_error_result; |
| 1161 | } |
| 1162 | |
| 1163 | extern "C" migraphx_status migraphx_shape_standard(bool* out, const_migraphx_shape_t shape) |
| 1164 | { |