[object Object]

[object Object][object Object]undefined
[object Object]
  • This API is used to create a 1D tensor of size steps\text{steps}, whose values are evenly spaced on a logarithmic scale from basestart\text{base}^\text{start} to baseend\text{base}^\text{end}, including the endpoints, with base\text{base} as the base.

  • Formulas:

result=(basestart, base(start+endstartsteps1), , base(start+(steps2)endstartsteps1), baseend)\text{result} = \left(\text{base}^\text{start},\ \text{base}^{\left(\text{start} + \frac{\text{end} - \text{start}}{\text{steps} - 1}\right)},\ \ldots,\ \text{base}^{\left(\text{start} + (\text{steps} - 2) * \frac{\text{end} - \text{start}}{\text{steps} - 1}\right)},\ \text{base}^\text{end}\right) [object Object]

Each operator is divided into . You must call the aclnnLogSpaceGetWorkspaceSize interface to obtain the workspace size required for computation and the executor that contains the operator computation process, and then call the aclnnLogSpace interface to perform computation.

[object Object]
[object Object]
[object Object]
  • Parameter description:

    [object Object]
  • Returns

    [object Object]: status code. For details, see .

    The first-phase API implements input parameter validation. The following error codes may be returned.

    [object Object]
[object Object]
  • Parameter description:

    [object Object]
  • Returns

    [object Object]: status code. For details, see .

[object Object]
  • Deterministic computing:

    • The aclnnLogSpace is implemented in deterministic mode by default.
[object Object]

The following example is for reference only. For details, see .

[object Object]