← Back to C-Kernel-Engine Docs Doxygen Source Documentation
 
Loading...
Searching...
No Matches
ckernel_linear_checked.h
Go to the documentation of this file.
1#ifndef CKE_LINEAR_CHECKED_H
2#define CKE_LINEAR_CHECKED_H
3
4#include <stddef.h>
5
6/* Row-major Y = X W^T + bias. All buffers are caller owned and nonaliasing.
7 * Physical row strides may exceed logical widths. Rejection returns -1 before
8 * any output write. This scalar inference provider accumulates in FP64. */
10 const float *input, size_t input_elements, size_t input_stride,
11 const float *weight, size_t weight_elements, size_t weight_stride,
12 const float *bias, size_t bias_elements,
13 float *output, size_t output_elements, size_t output_stride,
14 size_t rows, size_t input_channels, size_t output_channels);
15
16#endif
int linear_rows_checked_f32(const float *input, size_t input_elements, size_t input_stride, const float *weight, size_t weight_elements, size_t weight_stride, const float *bias, size_t bias_elements, float *output, size_t output_elements, size_t output_stride, size_t rows, size_t input_channels, size_t output_channels)