Baremetal-NN
Baremetal-NN API documentation
Loading...
Searching...
No Matches

◆ nn_linear_f16()

void nn_linear_f16 ( Tensor2D_F16 y,
const Tensor2D_F16 x,
const Tensor2D_F16 weight,
const Tensor1D_F16 bias 
)

Linear neural network layer.

nn_linear_f16

y[i][j] = x[i][k] * weight[j][k] + bias[j]

Parameters
yThe result tensor.
xThe input tensor.
weightThe weight tensor.
biasThe bias tensor.