[object Object]

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

  • Formulas:

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

    The values are as follows:

    • 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 self and out do not support BFLOAT16.
      • The data formats of self and out do not support NHWC.
  • 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]
  • Deterministic computation:
    • aclnnResize defaults to a deterministic implementation.
[object Object]

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

[object Object]