SetSize
Product Support
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function
Sets the size of the current LocalTensor. The unit is element. When the LocalTensor is reused and its length changes, you need to call this API to reset the size.
Prototype
1 | __aicore__ inline void SetSize(const uint32_t size) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
size |
Input |
Number of elements. |
Returns
None
Restrictions
None
Example
For details, see Example.
Parent topic: LocalTensor