Compute Library
18.05
|
#include "helpers.h"
Go to the source code of this file.
Functions | |
__kernel void | copy_tensor (__global uchar *in_ptr, uint in_stride_x, uint in_step_x, uint in_offset_first_element_in_bytes, __global uchar *out_ptr, uint out_stride_x, uint out_step_x, uint out_offset_first_element_in_bytes) |
Performs a copy of input tensor to the output tensor. More... | |
__kernel void copy_tensor | ( | __global uchar * | in_ptr, |
uint | in_stride_x, | ||
uint | in_step_x, | ||
uint | in_offset_first_element_in_bytes, | ||
__global uchar * | out_ptr, | ||
uint | out_stride_x, | ||
uint | out_step_x, | ||
uint | out_offset_first_element_in_bytes | ||
) |
Performs a copy of input tensor to the output tensor.
[in] | in_ptr | Pointer to the source image. Supported data types: U8. |
[in] | in_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | in_step_x | in_stride_x * number of elements along X processed per work item (in bytes) |
[in] | in_offset_first_element_in_bytes | Offset of the first element in the source image |
[out] | out_ptr | Pointer to the destination image. Supported data types: U8. |
[in] | out_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | out_step_x | out_stride_x * number of elements along X processed per work item (in bytes) |
[in] | out_offset_first_element_in_bytes | Offset of the first element in the destination image |
Definition at line 37 of file copy_tensor.cl.
References CONVERT_TO_VECTOR_STRUCT, DATA_TYPE, Vector::ptr, and VEC_DATA_TYPE.