[object Object]

[object Object][object Object]undefined
[object Object]
  • API description: Resizes the input tensor size based on scales.

  • Formula:

    out_dimension=floor(self_dimensionscales)out\_dimension = floor(self\_dimension * scales)

    Where,

    • self_dimensionself\_dimension is the value of the H axis and W axis of the self shape (input).
    • out_dimensionout\_dimension is the value of the H axis and W axis of the out shape (output).
    • scalesscales is the scales of the input self.
[object Object]

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

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

    [object Object]
    • [object Object]Atlas inference products[object Object], [object Object]Atlas training products[object Object], [object Object]Atlas A2 training products/Atlas A2 inference products[object Object], and [object Object]Atlas A3 training products/Atlas A3 inference products[object Object]:
      • The data types of [object Object] and [object Object] do not support BFLOAT16.
      • The data formats of [object Object] and [object Object] do not support NHWC.
  • 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]
  • Deterministic computing:
    • aclnnResize defaults to a deterministic implementation.
[object Object]

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

[object Object]