[object Object]

[object Object][object Object]undefined
[object Object]
  • API description: Applies the nearest neighbor interpolation algorithm to upsample the input signal composed of several input channels. If the input shape is (N, C, L), the output shape is (N, C, outputSize).
  • Formulas:out(N,C,l)=self(N,C,min(floor((l+0.5)scales),L1))out(N, C, l) = self(N, C, min(floor((l + 0.5) * scales), L-1))
[object Object]

Each operator has calls. First, aclnnUpsampleNearestExact1dGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnUpsampleNearestExact1d is called to perform computation.

[object Object]
[object Object]
[object Object]
  • Parameters

    [object Object]
    • [object Object]Atlas inference products[object Object]

      The data types of the input parameter self and output parameter out do not support BFLOAT16.

  • 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]
  • Parameters

    [object Object]
  • Returns:

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

[object Object]
  • The parameters self, outputSize, and scales must meet the following requirements:

    outputSize=floor(self_Lscales)outputSize = floor(self\_L * scales)
  • Deterministic computation:

    • aclnnUpsampleNearestExact1d defaults to a deterministic implementation.
[object Object]

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

[object Object]