CoreFlow 1.0.0
A modern orchestration and execution runtime
Loading...
Searching...
No Matches
Kernel: Tensor Transpose

Functions

VX_API_ENTRY vx_node VX_API_CALL vxTensorTransposeNode (vx_graph graph, vx_tensor input, vx_tensor output, vx_size dimension1, vx_size dimension2)
 [Graph] Performs transpose on the input tensor. The node transpose the tensor according to a specified 2 indexes in the tensor (0-based indexing)
 
VX_API_ENTRY vx_status VX_API_CALL vxuTensorTranspose (vx_context context, vx_tensor input, vx_tensor output, vx_size dimension1, vx_size dimension2)
 [Immediate] Performs transpose on the input tensor. The tensor is transposed according to a specified 2 indexes in the tensor (0-based indexing)
 

Detailed Description

Function Documentation

◆ vxTensorTransposeNode()

VX_API_ENTRY vx_node VX_API_CALL vxTensorTransposeNode ( vx_graph graph,
vx_tensor input,
vx_tensor output,
vx_size dimension1,
vx_size dimension2 )

#include <vx_nodes.h>

[Graph] Performs transpose on the input tensor. The node transpose the tensor according to a specified 2 indexes in the tensor (0-based indexing)

Parameters
[in]graphThe handle to the graph.
[in]inputInput tensor data, Implementations must support input tensor data type VX_TYPE_INT16 with fixed_point_position 8, and tensor data types VX_TYPE_UINT8 and VX_TYPE_INT8, with fixed_point_position 0.
[out]outputoutput tensor data,
[in]dimension1Dimension index that is transposed with dim 2.
[in]dimension2Dimension index that is transposed with dim 1.
Returns
vx_node.
A node reference vx_node. Any possible errors preventing a successful creation should be checked using vxGetStatus.

◆ vxuTensorTranspose()

VX_API_ENTRY vx_status VX_API_CALL vxuTensorTranspose ( vx_context context,
vx_tensor input,
vx_tensor output,
vx_size dimension1,
vx_size dimension2 )

#include <vxu.h>

[Immediate] Performs transpose on the input tensor. The tensor is transposed according to a specified 2 indexes in the tensor (0-based indexing)

Parameters
[in]contextThe reference to the overall context.
[in]inputInput tensor data, Implementations must support input tensor data type VX_TYPE_INT16 with fixed_point_position 8, and tensor data types VX_TYPE_UINT8 and VX_TYPE_INT8, with fixed_point_position 0.
[out]outputoutput tensor data,
[in]dimension1Dimension index that is transposed with dim 2.
[in]dimension2Dimension index that is transposed with dim 1.
Returns
A vx_status_e enumeration.
Return values
VX_SUCCESSSuccess
*An error occurred. See vx_status_e.