25 #ifndef AIMATH_Q7_DEFAULT
26 #define AIMATH_Q7_DEFAULT
Definition of the Q31 (aiq31) data-type.
Definition of the Q7 (aiq7) data-type.
void aimath_q7_default_copy_tensor(const aitensor_t *from, aitensor_t *to)
Performs an element wise copy of Q7 tensors.
void aimath_q7_default_transpose_matrix(aitensor_t *x)
Transpose a Q7 tensor.
void aimath_q7_default_zero_tensor(aitensor_t *tensor)
Fills a Q7 tensor with zeros.
void aimath_q7_default_sigmoid(const aitensor_t *x, aitensor_t *result)
Calculates the sigmoid of each element in a Q7 tensor.
void aimath_q7_default_tensor_add_same_shift(const aitensor_t *a, const aitensor_t *b, aitensor_t *result)
Performs an element wise addition of Q7 tensors a and b with same shifts.
void aimath_q7_default_d_relu(const aitensor_t *x, aitensor_t *result)
Calculates the rectifier (ReLU) derivative of each element in a Q7 tensor.
void aimath_q7_default_tensor_add_different_shift(const aitensor_t *a, const aitensor_t *b, aitensor_t *result)
Performs an element wise addition of Q7 tensors a and b with different shifts.
void aimath_q7_default_relu(const aitensor_t *x, aitensor_t *result)
Calculates the rectifier (ReLU) value of each element in a Q7 tensor.
void aimath_q7_default_init_zeros(aitensor_t *tensor)
Fills a Q7 tensor with zeros.
void aimath_q7_default_linear32_bt(const aitensor_t *a, const aitensor_t *b, const aitensor_t *c, aitensor_t *result)
Performs a matrix multiplication of Q7 matrices a and b (transposed) and adds a Q31 vector c to eac...
void aimath_q7_default_tensor_sub_different_shift(const aitensor_t *a, const aitensor_t *b, aitensor_t *result)
Performs an element wise addition of Q7 tensors a and b with different shifts.
void aimath_q7_default_elu(const aitensor_t *x, const void *alpha, aitensor_t *result)
Calculates the exponential rectifier (ELU) value of each element in a Q7 tensor.
void aimath_q7_default_softmax(const aitensor_t *x, aitensor_t *result)
Calculates the softmax value of each batch element (row) of a Q7 tensor.
void aimath_q7_default_scalar_mul(const void *scalar, const aitensor_t *a, aitensor_t *result)
Performs a scalar multiplication (scaling) of Q7 tensor a and a scalar.
void aimath_q7_default_tensor_sub_same_shift(const aitensor_t *a, const aitensor_t *b, aitensor_t *result)
Performs an element wise subtraction of Q7 tensors a and b with same shifts.
void aimath_q7_default_mat_mul(const aitensor_t *a, const aitensor_t *b, aitensor_t *result)
Performs a matrix multiplication of Q7 matrices a and b.
void aimath_q7_default_leaky_relu(const aitensor_t *x, const void *alpha, aitensor_t *result)
Calculates the leaky rectifier (leaky ReLU) value of each element in a Q7 tensor.
void aimath_q7_default_tanh(const aitensor_t *x, aitensor_t *result)
Calculates the tanh of each element in a Q7 tensor.
void aimath_q7_default_softsign(const aitensor_t *x, aitensor_t *result)
Calculates the softsign value of each element in a Q7 tensor.
void aimath_q7_default_linear32(const aitensor_t *a, const aitensor_t *b, const aitensor_t *c, aitensor_t *result)
Performs a matrix multiplication of Q7 matrices a and b and adds a Q31 vector c to each row.
void aimath_q7_default_transpose_vector(aitensor_t *vector)
Transposes a Q7 vector.
void aimath_q7_default_multiply(const aitensor_t *a, const aitensor_t *b, aitensor_t *result)
Performs an element wise multiplication of Q7 tensors a and b (Hadamard product)
A tensor in AIfES.
Definition: aifes_math.h:89