AIfES 2  2.0.0
ailayer_input_default.h File Reference

Default implementation of the Input layer . More...

Go to the source code of this file.

Typedefs

typedef struct ailayer_input ailayer_input_f32_t
 

Functions

ailayer_tailayer_input_f32_default (ailayer_input_f32_t *layer)
 Initializes and connect an Input layer with the F32 default implementation. More...
 

Detailed Description

Default implementation of the Input layer .

Version
2.0alpha

AIfES is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Hardware independent implementations of the Input layer in F32 data-type. For more information about the Input layer refer to ailayer_input.h.

Function Documentation

◆ ailayer_input_f32_default()

ailayer_t* ailayer_input_f32_default ( ailayer_input_f32_t layer)

Initializes and connect an Input layer with the F32 default implementation.

Example: Create the layer structure:

uint16_t input_layer_shape[] = {1, 2};
ailayer_input_f32_t input_layer = {
.input_dim = 2,
.input_shape = input_layer_shape
};
General Input layer structure.
Definition: ailayer_input.h:42
uint8_t input_dim
Dimension of the input tensor.
Definition: ailayer_input.h:52

Example: Initialize and connect the layer:

x = ailayer_input_f32_default(&input_layer);
ailayer_t * ailayer_input_f32_default(ailayer_input_f32_t *layer)
Initializes and connect an Input layer with the F32 default implementation.
Parameters
*layerThe layer structure to initialize.
Returns
The (successfully) initialized layer structure.