L1与Fixpipe Buffer数据搬运
DataCopy(L1ToFixpipe Buffer连续数据搬运)
DataCopy能够实现L1 Buffer至Fixpipe Buffer的连续数据搬运,数据搬运时格式和内容保持不变。
具体支持的数据通路为(以逻辑位置TPosition表示):
- L1 Buffer -> Fixpipe Buffer
- C1 -> C2PIPE2GM
搬运的数据为随路量化和随路relu参数,接口具体介绍请参考:DataCopy(L1ToFixpipe-Buffer数据搬运)。
src和dst分别为源操作数和目的操作数;count为连续搬运的元素个数。
C++
template <typename T>
__aicore__ inline void DataCopy(const LocalTensor<T>& dst, const LocalTensor<T>& src, const uint32_t count);
DataCopy(L1ToFixpipe Buffer高维切分数据搬运)
DataCopy能够实现L1 Buffer至Fixpipe Buffer的连续数据搬运和非连续数据搬运,数据搬运时格式和内容保持不变。
高维切分是指能够通过配置数据块个数、单个数据块长度、地址偏移等搬运参数实现非连续搬运。
具体支持的数据通路为(以逻辑位置TPosition表示):
- L1 Buffer -> Fixpipe Buffer
- C1 -> C2PIPE2GM
搬运的数据为随路量化和随路relu参数,接口具体介绍请参考:DataCopy(L1ToFixpipe-Buffer数据搬运)。
src和dst分别为源操作数和目的操作数;repeatParams为搬运参数。
C++
template <typename T>
__aicore__ inline void DataCopy(const LocalTensor<T>& dst, const LocalTensor<T>& src, const DataCopyParams& repeatParams)