1#ifndef __NN_TENSOR_CREATION
2#define __NN_TENSOR_CREATION
DataType
Definition: tensor.h:21
void NN_init_tensor(Tensor *tensor, const size_t ndim, const size_t *shape, DataType dtype, void *data)
Tensor * NN_arange(size_t ndim, const size_t *shape, DataType dtype, float start, float step)
Tensor * NN_ones(size_t ndim, const size_t *shape, DataType dtype)
Tensor * NN_zeros(size_t ndim, const size_t *shape, DataType dtype)
Tensor * NN_tensor(size_t ndim, const size_t *shape, DataType dtype, void *data)
Tensor * NN_rand(size_t ndim, const size_t *shape, DataType dtype)