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

◆ nn_tensor1d_f32()

Tensor1D_F32 * nn_tensor1d_f32 ( size_t  shape[1],
const float *  data 
)

Creates a 1D floating-point data tensor, with the shape defined by the 1-element array shape.

This method always allocates memory for the tensor. If data is specified, it copies the data from data to the tensor.

Parameters
shapeThe shape of the tensor.
dataIf specified, the data to copy from and store in the tensor.