![]()  | 
  
    AIfES 2
    2.0.0
    
   | 
 
Definition of the U8 (aiu8) data-type. More...
Go to the source code of this file.
Typedefs | |
| typedef uint8_t | aiscalar_u8_t | 
Functions | |
| void | aimath_u8_print_aitensor (const aitensor_t *tensor) | 
| Printing a U8 tensor to console.  More... | |
| void | aimath_u8_print_aiscalar (const void *scalar) | 
| Printing a U8 scalar to console.  More... | |
Variables | |
| const aimath_dtype_t * | aiu8 | 
| The U8 data-type indicator.  More... | |
Definition of the U8 (aiu8) data-type.
The U8 (aiu8) data-type stores data as 8 bit unsigned integer values. It does not require any additional parameter to define the values. This data-type is used for example for classification labels.
Example: Create a U8 tensor
The tensor 
\[ \left( \begin{array}{rrr} 0 & 1 & 2 \\ 3 & 4 & 5 \end{array}\right) \]
can be created with In C:
In C, C++ and on Arduino:
Example: Create a U8 scalar
Either create it as a normal uint8_t value 
or with the alias
Example: Print a U8 tensor to the console
Example: Print a U8 scalar to the console
| void aimath_u8_print_aiscalar | ( | const void * | scalar | ) | 
Printing a U8 scalar to console.
For users the function
is prefered.
| *scalar | The scalar (type: uint8_t) to print. | 
| void aimath_u8_print_aitensor | ( | const aitensor_t * | tensor | ) | 
Printing a U8 tensor to console.
For users the function
is prefered.
| *tensor | The tensor to print. | 
      
  | 
  extern | 
The U8 data-type indicator.
Use this variable to configure some element with the U8 data-type,