operator()
产品支持情况
产品 |
是否支持 |
---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
x |
函数原型
1 | __aicore__ inline __inout_pipe__(S) __ubuf__ PrimType& operator()(const uint32_t offset) const |
参数说明
参数名 |
输入/输出 |
描述 |
---|---|---|
offset |
输入 |
LocalTensor下标索引。 |
返回值说明
返回指定索引位置的元素的PrimType类型引用。
PrimType定义如下:
1 2 | // PrimT用于从T中提取基础数据类型:T传入基础数据类型,直接返回数据类型;T传入为TensorTrait类型时萃取TensorTrait中的LiteType基础数据类型 using PrimType = PrimT<T>; |
约束说明
无
调用示例
参考调用示例。
父主题: LocalTensor