Micro-kernel selector * * @param[in] data Selection data passed to help pick the appropriate micro-kernel * * @return A matching micro-kernel else nullptr */
| 86 | * @return A matching micro-kernel else nullptr |
| 87 | */ |
| 88 | const CropUKernel *get_implementation(const CropSelectorData &data) |
| 89 | { |
| 90 | for (const auto &uk : available_kernels) |
| 91 | { |
| 92 | if (uk.is_selected(data)) |
| 93 | { |
| 94 | return &uk; |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | return nullptr; |
| 99 | } |
| 100 | |
| 101 | inline void out_of_bounds_crop_window(const ITensor *output, |
| 102 | float *output_ptr, |
no test coverage detected