CoreFlow 1.0.0
A modern orchestration and execution runtime
|
Functions | |
VX_API_ENTRY vx_node VX_API_CALL | vxTensorSubtractNode (vx_graph graph, vx_tensor input1, vx_tensor input2, vx_enum policy, vx_tensor output) |
[Graph] Performs arithmetic subtraction on element values in the input tensor data. | |
VX_API_ENTRY vx_status VX_API_CALL | vxuTensorSubtract (vx_context context, vx_tensor input1, vx_tensor input2, vx_enum policy, vx_tensor output) |
[Immediate] Performs arithmetic subtraction on element values in the input tensor data. | |
VX_API_ENTRY vx_node VX_API_CALL vxTensorSubtractNode | ( | vx_graph | graph, |
vx_tensor | input1, | ||
vx_tensor | input2, | ||
vx_enum | policy, | ||
vx_tensor | output ) |
#include <vx_nodes.h>
[Graph] Performs arithmetic subtraction on element values in the input tensor data.
[in] | graph | The handle to the graph. |
[in] | input1 | Input 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. |
[in] | input2 | Input tensor data. The dimensions and sizes of input2 match those of input1, unless the vx_tensor of one or more dimensions in input2 is 1. In this case, those dimensions are treated as if this tensor was expanded to match the size of the corresponding dimension of input1, and data was duplicated on all terms in that dimension. After this expansion, the dimensions will be equal. The data type must match the data type of Input1. |
[in] | policy | A vx_convert_policy_e enumeration. |
[out] | output | The output tensor data with the same dimensions as the input tensor data. |
vx_node
. vx_node
. Any possible errors preventing a successful creation should be checked using vxGetStatus
. VX_API_ENTRY vx_status VX_API_CALL vxuTensorSubtract | ( | vx_context | context, |
vx_tensor | input1, | ||
vx_tensor | input2, | ||
vx_enum | policy, | ||
vx_tensor | output ) |
#include <vxu.h>
[Immediate] Performs arithmetic subtraction on element values in the input tensor data.
[in] | context | The reference to the overall context. |
[in] | input1 | Input 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. |
[in] | input2 | Input tensor data. The dimensions and sizes of input2 match those of input1, unless the vx_tensor of one or more dimensions in input2 is 1. In this case, those dimensions are treated as if this tensor was expanded to match the size of the corresponding dimension of input1, and data was duplicated on all terms in that dimension. After this expansion, the dimensions will be equal. The data type must match the data type of Input1. |
[in] | policy | A vx_convert_policy_e enumeration. |
[out] | output | The output tensor data with the same dimensions as the input tensor data. |
vx_status_e
enumeration. VX_SUCCESS | Success |
* | An error occurred. See vx_status_e . |