operator[]
Product Support
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function
Obtains the new LocalTensor whose offset value from the start address of the original LocalTensor is offset. Note that offset cannot exceed the size of the original LocalTensor.
Prototype
1 | __aicore__ inline LocalTensor operator[](const uint32_t offset) const |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
offset |
Input |
Offset. The unit is element. |
Returns
Returns a new LocalTensor whose offset from the start address of the original LocalTensor is offset.
Restrictions
None
Example
For details, see Example.
Parent topic: LocalTensor