Memory Functions

okk_bdc_32bit_cpy

void okk_bdc_32bit_cpy(local_addr_t dst_addr, local_addr_t src_addr, const dim4 *shape, const dim4 *dst_stride, const dim4 *src_stride)

Copy the elements of the source tensor to the destination tensor for 32-bit data type.

\[dst(n, c, h, w) = src(n, c, h, w)\]
Parameters
  • dst_addr – Address of the destination tensor.

  • src_addr – Address of the source tensor.

  • shape – Pointer to the shape of the destination tensor.

  • dst_stride – Pointer to the stride of the destination tensor.

  • src_stride – Pointer to the stride of the source tensor.

Remarks

okk_bdc_32bit_set_C

void okk_bdc_32bit_set_C(local_addr_t dst_addr, x32 C, const dim4 *shape, const dim4 *dst_stride)

Set all the elements of the destination tensor to be a constant value for 32-bit data type.

\[dst(n, c, h, w) = C\]
Parameters
  • dst_addr – Address of the destination tensor.

  • shape – Pointer to the shape of the destination tensor.

  • dst_stride – Pointer to the stride of the destination tensor.

Remarks