|
Baremetal-NN
Baremetal-NN API documentation
|
| 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.
nn_tensor1d_f32
This method always allocates memory for the tensor. If data is specified, it copies the data from data to the tensor.
| shape | The shape of the tensor. |
| data | If specified, the data to copy from and store in the tensor. |