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

◆ nn_addscalar1d_f32()

void nn_addscalar1d_f32 ( Tensor1D_F32 y,
const Tensor1D_F32 x,
float  scalar 
)

Adds a scalar to a 1D floating-point tensor and stores the result in y.

nn_addscalar1d_f32

y[i] = x[i] + scalar

Parameters
yThe result tensor.
xThe tensor to add the scalar to.
scalarThe scalar to add.