Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
fiona-gladwin committed Jul 21, 2023
1 parent f2a962f commit 122a99f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions amd_openvx_extensions/amd_rpp/source/kernel_rpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1852,24 +1852,24 @@ VX_API_CALL vx_node VX_API_CALL vxExtrppNode_NopbatchPD(vx_graph graph, vx_image
return node;
}

VX_API_CALL vx_node VX_API_CALL vxExtrppNode_SequenceRearrangeImage(vx_graph graph, vx_image pSrc, vx_image pDst, vx_array newOrder, vx_uint32 newSequenceLength, vx_uint32 sequenceLength, vx_uint32 sequenceCount)
VX_API_CALL vx_node VX_API_CALL vxExtrppNode_SequenceRearrangeImage(vx_graph graph, vx_image pSrc, vx_image pDst, vx_array pNewOrder, vx_uint32 newSequenceLength, vx_uint32 sequenceLength, vx_uint32 sequenceCount)
{
vx_node node = NULL;
vx_context context = vxGetContext((vx_reference)graph);
if(vxGetStatus((vx_reference)context) == VX_SUCCESS) {
vx_uint32 dev_type = getGraphAffinity(graph);
vx_scalar DEV_TYPE = vxCreateScalar(vxGetContext((vx_reference)graph), VX_TYPE_UINT32, &dev_type);
vx_scalar NEWSEQUENCELENGTH = vxCreateScalar(vxGetContext((vx_reference)graph), VX_TYPE_UINT32, &newSequenceLength);
vx_scalar SEQUENCELENGTH = vxCreateScalar(vxGetContext((vx_reference)graph), VX_TYPE_UINT32, &sequenceLength);
vx_scalar SEQUENCECOUNT = vxCreateScalar(vxGetContext((vx_reference)graph), VX_TYPE_UINT32, &sequenceCount);
vx_uint32 devType = getGraphAffinity(graph);
vx_scalar deviceType = vxCreateScalar(vxGetContext((vx_reference)graph), VX_TYPE_UINT32, &devType);
vx_scalar newSequenceLengthScalar = vxCreateScalar(vxGetContext((vx_reference)graph), VX_TYPE_UINT32, &newSequenceLength);
vx_scalar sequenceLengthScalar = vxCreateScalar(vxGetContext((vx_reference)graph), VX_TYPE_UINT32, &sequenceLength);
vx_scalar sequenceCountScalar = vxCreateScalar(vxGetContext((vx_reference)graph), VX_TYPE_UINT32, &sequenceCount);
vx_reference params[] = {
(vx_reference) pSrc,
(vx_reference) pDst,
(vx_reference) newOrder,
(vx_reference) NEWSEQUENCELENGTH,
(vx_reference) SEQUENCELENGTH,
(vx_reference) SEQUENCECOUNT,
(vx_reference) DEV_TYPE
(vx_reference) pNewOrder,
(vx_reference) newSequenceLengthScalar,
(vx_reference) sequenceLengthScalar,
(vx_reference) sequenceCountScalar,
(vx_reference) deviceType
};
node = createNode(graph, VX_KERNEL_RPP_SEQUENCEREARRANGEIMAGE, params, 7);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ struct SequenceRearrangeLocalData {
vxRppHandle *handle;
RppPtr_t pSrc;
RppPtr_t pDst;
vx_uint32 deviceType;
vx_uint32 newSequenceLength;
vx_uint32 sequenceLength;
vx_uint32 *pNewOrder;
Rpp32u deviceType;
Rpp32u newSequenceLength;
Rpp32u sequenceLength;
Rpp32u *pNewOrder;
vxTensorLayout layout;
RpptDescPtr pSrcDesc;
RpptDescPtr pDstDesc;
Expand Down

0 comments on commit 122a99f

Please sign in to comment.