AIfES 2
2.0.0
|
General layer structure. More...
#include <ailayer_reshape.h>
Data Fields | |
ailayer_t | base |
Inherited field members from general ailayer struct. | |
Layer configuration | |
Required configuration parameters for the layer These fields have to be configured by the user before calling the initializer function. | |
uint8_t | output_dim |
Output dimension count (length of output shape array). | |
uint8_t | infer_axis |
Specifies the axis that is inferred from the elements of the tensor and remaining axes (Set to zero if not used). | |
uint16_t * | output_shape |
Target shape for reshape operation. | |
Math functions | |
Required data type specific math functions | |
void(* | reshape )(const aitensor_t *x, aitensor_t *result) |
Optional math function: Reshape. More... | |
General layer structure.
void(* reshape) (const aitensor_t *x, aitensor_t *result) |
Optional math function: Reshape.
Optional math function that reshapes the tensor x (may be due to copying or just changing the shape).
Set to zero if not required.
x | N-dimensional tensor (input) |
result | M-dimensional tensor (output) |