LIBML Version 4.1.9
LIBML NN Software Library
Loading...
Searching...
No Matches
Concatenation Functions

The concatenation functions are used to concatenate the tensor along the specified axis. More...

Functions

void tpt_concatenation_s8_w (int8_t *aOut_tensor, const int8_t *aIn_tensor, const uint16_t tensor_x, const uint16_t tensor_y, const uint16_t tensor_z, const uint16_t tensor_w, const uint32_t offset_w)
 This function concatenates the signed 8-bit integer input tensor along the w-axis with the output tensor.
void tpt_concatenation_s8_x (int8_t *aOut_tensor, const int8_t *aIn_tensor, const uint16_t tensor_x, const uint16_t tensor_y, const uint16_t tensor_z, const uint16_t tensor_w, const uint16_t out_tensor_x, const uint32_t offset_x)
 This function concatenates the signed 8-bit integer input tensor along the x-axis with the output tensor.
void tpt_concatenation_s8_y (int8_t *aOut_tensor, const int8_t *aIn_tensor, const uint16_t tensor_x, const uint16_t tensor_y, const uint16_t tensor_z, const uint16_t tensor_w, const uint16_t out_tensor_y, const uint32_t offset_y)
 This function concatenates the signed 8-bit integer input tensor along the y-axis with the output tensor.
void tpt_concatenation_s8_z (int8_t *aOut_tensor, const int8_t *aIn_tensor, const uint16_t tensor_x, const uint16_t tensor_y, const uint16_t tensor_z, const uint16_t tensor_w, const uint16_t out_tensor_z, const uint32_t offset_z)
 This function concatenates the signed 8-bit integer input tensor along the z-axis with the output tensor.
static void tpt_copy_q7 (q7_t *__restrict aOutData, const q7_t *__restrict aInData, uint32_t aCount)

Detailed Description

The concatenation functions are used to concatenate the tensor along the specified axis.

Function Documentation

◆ tpt_concatenation_s8_w()

void tpt_concatenation_s8_w ( int8_t * aOut_tensor,
const int8_t * aIn_tensor,
const uint16_t tensor_x,
const uint16_t tensor_y,
const uint16_t tensor_z,
const uint16_t tensor_w,
const uint32_t offset_w )

This function concatenates the signed 8-bit integer input tensor along the w-axis with the output tensor.

Parameters
[out]aOut_tensorpointer to output tensor
[in]aIn_tensorpointer to input tensor
[in]tensor_xx dimension of the input tensor
[in]tensor_yy dimension of the input tensor
[in]tensor_zz dimension of the input tensor
[in]tensor_ww dimension of the input tensor
[in]offset_woffset value to be added to the w-axis of the output tensor before the concatenation
Returns
None
Note
  • The x, y and z dimension of the output tensor will be the same as those of the input tensor.
  • The data layout of input and output tensors is assumed to be wzyx.

◆ tpt_concatenation_s8_x()

void tpt_concatenation_s8_x ( int8_t * aOut_tensor,
const int8_t * aIn_tensor,
const uint16_t tensor_x,
const uint16_t tensor_y,
const uint16_t tensor_z,
const uint16_t tensor_w,
const uint16_t out_tensor_x,
const uint32_t offset_x )

This function concatenates the signed 8-bit integer input tensor along the x-axis with the output tensor.

Parameters
[out]aOut_tensorpointer to output tensor
[in]aIn_tensorpointer to input tensor
[in]tensor_xx dimension of the input tensor
[in]tensor_yy dimension of the input tensor
[in]tensor_zz dimension of the input tensor
[in]tensor_ww dimension of the input tensor
[out]out_tensor_xx dimension of the output tensor
[in]offset_xoffset value to be added to the x-axis of the output tensor before the concatenation
Returns
none
Note
  • The y, z and w dimensions of the output tensor will be the same as those of the input tensor.
  • The data layout of input and output tensors is assumed to be wzyx.

◆ tpt_concatenation_s8_y()

void tpt_concatenation_s8_y ( int8_t * aOut_tensor,
const int8_t * aIn_tensor,
const uint16_t tensor_x,
const uint16_t tensor_y,
const uint16_t tensor_z,
const uint16_t tensor_w,
const uint16_t out_tensor_y,
const uint32_t offset_y )

This function concatenates the signed 8-bit integer input tensor along the y-axis with the output tensor.

Parameters
[out]aOut_tensorpointer to output tensor
[in]aIn_tensorpointer to input tensor
[in]tensor_xx dimension of the input tensor
[in]tensor_yy dimension of the input tensor
[in]tensor_zz dimension of the input tensor
[in]tensor_ww dimension of the input tensor
[out]out_tensor_yx dimension of the output tensor
[in]offset_yoffset value to be added to the y-axis of the output tensor before the concatenation
Returns
none
Note
  • The x, z and w dimensions of the output tensor will be the same as those of the input tensor.
  • The data layout of input and output tensors is assumed to be wzyx.

◆ tpt_concatenation_s8_z()

void tpt_concatenation_s8_z ( int8_t * aOut_tensor,
const int8_t * aIn_tensor,
const uint16_t tensor_x,
const uint16_t tensor_y,
const uint16_t tensor_z,
const uint16_t tensor_w,
const uint16_t out_tensor_z,
const uint32_t offset_z )

This function concatenates the signed 8-bit integer input tensor along the z-axis with the output tensor.

Parameters
[out]aOut_tensorpointer to output tensor
[in]aIn_tensorpointer to input tensor
[in]tensor_xx dimension of the input tensor
[in]tensor_yy dimension of the input tensor
[in]tensor_zz dimension of the input tensor
[in]tensor_ww dimension of the input tensor
[out]out_tensor_zz dimension of the output tensor
[in]offset_zoffset value to be added to the z-axis of the output tensor before the concatenation
Returns
none
Note
  • The x, y and w dimensions of the output tensor will be the same as those of the input tensor.
  • The data layout of input and output tensors is assumed to be wzyx.

◆ tpt_copy_q7()

void tpt_copy_q7 ( q7_t *__restrict aOutData,
const q7_t *__restrict aInData,
uint32_t aCount )
inlinestatic

s8 version of concatenation along the W axis Refer to header file for details.