// File: conv2d_w8a8ch_contract.h
#pragma once
#include "mat.h"
#include "option.h"

// Harness contract for conv2d w8a8ch (int8) baseline.
// Called by armbench_entry_conv2d (binding.cpp); implemented by kernel.cpp.
// num_output is encoded in top_blob.c (pre-allocated by binding.cpp, elemsize=1u —
// int8 output). input_scale is a per-definition-constant dequant scalar (see
// binding.cpp.tmpl); weight_scales is a genuine runtime Mat (per-output-channel).
namespace ncnn {
int convolution2d_w8a8ch_kernel(
    const Mat& bottom_blob, Mat& top_blob,
    const Mat& weight_data, const Mat& bias_data,
    const Mat& weight_scales,
    int kernel_h, int kernel_w,
    int stride_h, int stride_w,
    int dilation_h, int dilation_w,
    int pad_top, int pad_left,
    const Option& opt);
}