产品 |
是否支持 |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
x |
设置带有偏移的Tensor地址。用于快速获取定义一个Tensor,同时指定新Tensor相对于旧Tensor首地址的偏移。偏移的长度为旧Tensor的元素个数。
1 2 | template <typename T1> __aicore__ inline void SetAddrWithOffset(LocalTensor<T1> &src, uint32_t offset) |
参数名 |
输入/输出 |
描述 |
|---|---|---|
src |
输入 |
基础地址的Tensor,将该Tensor的地址作为基础地址,设置偏移后的Tensor地址。 |
offset |
输入 |
偏移的长度,单位为元素。 |
无
无
参考调用示例。