| 282 | |
| 283 | #ifdef MIGRAPHX_USE_ROCBLAS_TUNING_API |
| 284 | auto validate(context& ctx, const std::vector<shape>& input_shapes, int32_t solution_idx) const |
| 285 | { |
| 286 | // Create dummy arguments for the shapes, and call the overloaded method |
| 287 | std::vector<argument> input_args; |
| 288 | unsigned long seed = 0; |
| 289 | std::transform(input_shapes.begin(), |
| 290 | input_shapes.end(), |
| 291 | std::back_inserter(input_args), |
| 292 | [&](const shape& x) { |
| 293 | return to_gpu(generate_argument(x, seed++, random_mode::random)); |
| 294 | }); |
| 295 | return validate(ctx, input_args, solution_idx); |
| 296 | } |
| 297 | |
| 298 | /** |
| 299 | * Checks a particular solution for validity by running it with the flag |
no test coverage detected