AMD rocAL - Data Transfer API

AMD rocAL - Data Transfer API#

rocAL: API: AMD rocAL - Data Transfer API
API: AMD rocAL - Data Transfer API

The AMD rocAL data transfer functions. More...

Functions

RocalStatus ROCAL_API_CALL rocalCopyToOutput (RocalContext context, unsigned char *out_ptr, size_t out_size)
 TBD. More...
 
RocalStatus ROCAL_API_CALL rocalToTensor32 (RocalContext rocal_context, float *out_ptr, RocalTensorLayout tensor_format, float multiplier0, float multiplier1, float multiplier2, float offset0, float offset1, float offset2, bool reverse_channels, RocalOutputMemType output_mem_type)
 TBD. More...
 
RocalStatus ROCAL_API_CALL rocalToTensor16 (RocalContext rocal_context, half *out_ptr, RocalTensorLayout tensor_format, float multiplier0, float multiplier1, float multiplier2, float offset0, float offset1, float offset2, bool reverse_channels, RocalOutputMemType output_mem_type)
 TBD. More...
 
RocalStatus ROCAL_API_CALL rocalToTensor (RocalContext rocal_context, void *out_ptr, RocalTensorLayout tensor_format, RocalTensorOutputType tensor_output_type, float multiplier0, float multiplier1, float multiplier2, float offset0, float offset1, float offset2, bool reverse_channels, RocalOutputMemType output_mem_type)
 TBD. More...
 
void ROCAL_API_CALL rocalSetOutputs (RocalContext p_context, unsigned int num_of_outputs, std::vector< RocalImage > &output_images)
 TBD. More...
 

Detailed Description

The AMD rocAL data transfer functions.

Function Documentation

◆ rocalCopyToOutput()

RocalStatus ROCAL_API_CALL rocalCopyToOutput ( RocalContext  context,
unsigned char *  out_ptr,
size_t  out_size 
)

TBD.

Parameters
[in]context
Returns
A RocalStatus - A status code indicating the success or failure

◆ rocalSetOutputs()

void ROCAL_API_CALL rocalSetOutputs ( RocalContext  p_context,
unsigned int  num_of_outputs,
std::vector< RocalImage > &  output_images 
)

TBD.

Parameters
[in]context
Returns
A RocalStatus - A status code indicating the success or failure

◆ rocalToTensor()

RocalStatus ROCAL_API_CALL rocalToTensor ( RocalContext  rocal_context,
void *  out_ptr,
RocalTensorLayout  tensor_format,
RocalTensorOutputType  tensor_output_type,
float  multiplier0,
float  multiplier1,
float  multiplier2,
float  offset0,
float  offset1,
float  offset2,
bool  reverse_channels,
RocalOutputMemType  output_mem_type 
)

TBD.

Parameters
[in]context
Returns
A RocalStatus - A status code indicating the success or failure

◆ rocalToTensor16()

RocalStatus ROCAL_API_CALL rocalToTensor16 ( RocalContext  rocal_context,
half *  out_ptr,
RocalTensorLayout  tensor_format,
float  multiplier0,
float  multiplier1,
float  multiplier2,
float  offset0,
float  offset1,
float  offset2,
bool  reverse_channels,
RocalOutputMemType  output_mem_type 
)

TBD.

Parameters
[in]context
Returns
A RocalStatus - A status code indicating the success or failure

◆ rocalToTensor32()

RocalStatus ROCAL_API_CALL rocalToTensor32 ( RocalContext  rocal_context,
float *  out_ptr,
RocalTensorLayout  tensor_format,
float  multiplier0,
float  multiplier1,
float  multiplier2,
float  offset0,
float  offset1,
float  offset2,
bool  reverse_channels,
RocalOutputMemType  output_mem_type 
)

TBD.

Parameters
[in]context
Returns
A RocalStatus - A status code indicating the success or failure