Description: Generates a 1D tensor containing a sequence of values from [object Object]start[object Object] to [object Object]end[object Object], spaced by [object Object]step[object Object]. The value range is [start, end).
Formula:
Each operator has calls. First, [object Object] is called to obtain the workspace size required for computation and the executor covering the operator computation process. Then, [object Object] is called to perform computation.
Parameters:
[object Object]- [object Object]Atlas inference products[object Object] and [object Object]Atlas training products[object Object]: The data type cannot be BFLOAT16.
- Ascend 950PR/Ascend 950DT: out does not support the DOUBLE data type.
Returns:
[object Object]: status code. For details, see .The first-phase API implements input parameter verification. The following errors may be thrown.
[object Object]
- Deterministic computation:
[object Object]defaults to a deterministic implementation.
Warning: When the input data type is [object Object]float[object Object], use [object Object]float[object Object] to calculate the output size of [object Object]out[object Object] due to the inherent precision limitations of the data type. If [object Object]double[object Object] is used for calculation instead, the result may be less than the [object Object]float[object Object] result, leading to a verification warning during the tiling phase.
The following example is for reference only. For details, see .