GetArangeMaxMinTmpSize
Function
Obtains the Arange tiling parameters, that is, the maximum temporary space size (max) and minimum temporary space size (min) required for Arange computation.
The Arange API does not need to use the temporary space. Therefore, 0 is returned for both max and min.
Prototype
The GetArithProgressionMaxMinTmpSize API has been deprecated and will be removed in later versions. Do not use this API. Use the GetArangeMaxMinTmpSize API instead.
1 | void GetArangeMaxMinTmpSize(uint32_t& maxValue, uint32_t& minValue) |
1 | void GetArithProgressionMaxMinTmpSize(uint32_t& maxValue, uint32_t& minValue) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
maxValue |
Output |
Maximum size of the temporary space required by Arange computation. NOTE:
maxValue is for reference only and may be larger than the remaining space of the Unified Buffer. In this case, select a proper temporary space size based on the remaining space of the Unified Buffer. |
minValue |
Output |
Minimum size of the temporary space required by Arange computation. |
Returns
None
Restrictions
None
Example
1 2 3 | uint32_t maxValue = 0; uint32_t minValue = 0; AscendC::GetArangeMaxMinTmpSize(maxValue, minValue); |