AIfES 2  2.0.0
aimath_basic.h
Go to the documentation of this file.
1 
24 #ifndef AIMATH_BASIC
25 #define AIMATH_BASIC
26 
27 #include "core/aifes_math.h"
28 
45 void print_aitensor(const aitensor_t *tensor);
46 
61 void print_aiscalar(const void *scalar, const aimath_dtype_t *dtype);
62 
74 
80 uint32_t aimath_tensor_elements(const aitensor_t *tensor);
81 
87 uint32_t aimath_sizeof_dtype(const aimath_dtype_t *dtype);
88 
98 uint32_t aimath_sizeof_tensor_data(const aitensor_t *tensor);
99 
105 uint32_t aimath_sizeof_tensor_params(const aitensor_t *tensor);
106 
116 uint32_t aimath_sizeof_tensor(const aitensor_t *tensor);
117 
118 //void aimath_create_tensor_2d(uint16_t shape_0, uint16_t shape_1, aimath_dtype_t dtype, void *memory_ptr);
119 
120 #endif // AIMATH_BASIC
AIfES 2 math interface.
void aimath_transpose_vector(aitensor_t *vector)
Transposes a vector.
uint32_t aimath_sizeof_tensor(const aitensor_t *tensor)
Returns size of tensor in bytes.
void print_aiscalar(const void *scalar, const aimath_dtype_t *dtype)
Printing a scalar to console.
void print_aitensor(const aitensor_t *tensor)
Printing a tensor to console.
uint32_t aimath_sizeof_dtype(const aimath_dtype_t *dtype)
Returns the size of one value in the given data type in bytes.
uint32_t aimath_sizeof_tensor_data(const aitensor_t *tensor)
Returns size of the data array of the tensor in bytes.
uint32_t aimath_tensor_elements(const aitensor_t *tensor)
Calculates the number of elements in a tensor.
uint32_t aimath_sizeof_tensor_params(const aitensor_t *tensor)
Returns size of the aitensor.tensor_params for the data type of the tensor.
Indicator for the used datatype.
Definition: aifes_math.h:44
A tensor in AIfES.
Definition: aifes_math.h:89