| 1 | // |
| 2 | // SPDX-FileCopyrightText: Copyright 2025 Arm Limited and/or its affiliates <open-source-office@arm.com> |
| 3 | // |
| 4 | // SPDX-License-Identifier: Apache-2.0 |
| 5 | // |
| 6 | |
| 7 | #pragma once |
| 8 | |
| 9 | #include <cstddef> |
| 10 | #include <optional> |
| 11 | |
| 12 | #include "dwconv_benchmark_logic.hpp" |
| 13 | |
| 14 | namespace kai::benchmark { |
| 15 | |
| 16 | /// Registers depthwise convolution micro-kernels for benchmarking. |
| 17 | /// |
| 18 | /// @param shape Shape with input dimensions, channels, and operator parameters (stride/padding/dilation) |
| 19 | void RegisterDwConvBenchmarks(const DwConvShape& shape); |
| 20 | |
| 21 | /// Infers the output height/width for the supplied shape using the first registered kernel traits. |
| 22 | /// |
| 23 | /// @return Populated output dimensions when valid, std::nullopt otherwise. |
| 24 | std::optional<DwConvOutputShape> InferDwConvOutputDims(const DwConvShape& shape); |
| 25 | |
| 26 | } // namespace kai::benchmark |