[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). Compared with , this API adds the input parameter scaleL. You should select a proper API based on the actual situation.

  • Formulas:

    out(N,C,l)=self(N,C,min(floor(lscaleL),L1)), scaleL=outputSize[0]/self_Lout(N, C, l) = self(N, C, min(floor(l * scaleL), L-1)), \ scaleL = outputSize[0] / self\_L
[object Object]

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

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

    [object Object]
    • [object Object]Atlas inference products[object Object] and [object Object]Atlas training 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 scaleL must meet the following restrictions:

    outputSize=floor(self_LscaleL)outputSize = floor(self\_L * scaleL)
  • Deterministic computation:

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

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

[object Object]