Baremetal-NN
Baremetal-NN API documentation
|
Tensor2D_F32 * nn_tensor2d_f32 | ( | size_t | shape[2], |
const float * | data | ||
) |
Creates a 2D floating-point data tensor, with the shape defined by the 2-element array shape
.
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. |