[object Object]

[object Object][object Object]undefined
[object Object]
  • Function: Performs backpropagation of .
  • Formula:gradInput(N,C,D,H,W)+=gradOut(N,C,ceil(scalesDD),ceil(scalesHH),ceil(scalesWW))gradInput(N, C, D, H, W) += gradOut( N, C, ceil ( scalesD * D ), ceil ( scalesH * H ), ceil ( scalesW * W ))
[object Object]

Each operator has calls. First, [object Object] is called to obtain the input parameters and compute the required workspace size based on the process. Then, [object Object] is called to perform computation.

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

    [object Object]
  • Returns:

    aclnnStatus: status code. For details, see .

    The first-phase API implements input parameter verification. The following errors may be thrown.

    [object Object]
[object Object]
  • Parameters

    [object Object]
  • Returns:

    aclnnStatus: status code. For details, see .

[object Object]
  • The shape constraints of [object Object] and [object Object] are as follows:
    • The value of each dimension is less than or equal to 2^20.

    • The N and C axes of [object Object] must be the same as those of [object Object].

    • The memory usage must be less than 60 GB. The memory size can be calculated according to the following formula:

      NC(gradOut_DgradOut_HgradOut_W+gradInput_DgradInput_HgradInput_W+gradOut_DgradOut_HgradInput_W+gradOut_DgradInput_HgradInput_W)sizeof(float)<60102410241024N * C * (gradOut\_D * gradOut\_H * gradOut\_W + gradInput\_D * gradInput\_H * gradInput\_W + gradOut\_D * gradOut\_H * gradInput\_W + gradOut\_D * gradInput\_H * gradInput\_W) * sizeof(float) < 60 * 1024 * 1024 * 1024

      Where,

      • N indicates the N axis of the input and output.
      • C indicates the C axis of the input and output.
    • N * C * gradOut_D * gradOut_H < 2^31

    • gradInput_W * gradInput_H < 2^31

  • If the data formats of gradOut and gradInput are not NCDHW or NDHWC, the input data is processed as NCDHW by default.
  • Either outputSize or scalesD/scalesH/scalesW must be used.
    • If the value of scalesD, scalesH, or scalesW is less than or equal to 0, the value of outputSize is used.
    • If the values of scalesD, scalesH, and scalesW are greater than 0, the values of scalesD, scalesH, and scalesW are used, and outputSize=[floor(inputSize_DscalesD),floor(inputSize_HscalesH),floor(inputSize_WscalesW)]outputSize = [floor(inputSize\_D * scalesD), floor(inputSize\_H * scalesH), floor(inputSize\_W * scalesW)].
  • Deterministic computing:
    • aclnnUpsampleNearest3dBackward defaults to a non-deterministic implementation. You can call aclrtCtxSetSysParamOpt to enable deterministic computing.
[object Object]

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

[object Object]