[object Object]

[object Object][object Object]undefined
[object Object]

Description: Based on a given set of 3D affine transformation matrices ([object Object]) and the desired output image size ([object Object]), generates a 2D or 3D grid. This grid represents the coordinates of points in the transformed image with respect to the original image.

[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] (aclTensor*, computation input): aclTensor on the device, affine transformation parameter for controlling rotation, scaling, and translation. The shape is (N, 2, 3) or (N, 3, 4). It supports . Its can be ND.
      • [object Object]Atlas training products[object Object]: The data type can be FLOAT32 or FLOAT16.
      • [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 type can be FLOAT32, FLOAT16, or BFLOAT16.
    • size (aclIntArray*, computation input): aclIntArray on the host, size of the output image. The size is 4 (N, C, H, W) or 5 (N, C, D, H, W).
    • alignCorners (bool, computation input): whether to align corner pixels. If True, the output grid's corner pixels align with the input grid's corner pixels. If False, the output grid's center pixels align with the input grid's center pixels. Defaults to False.
    • out (aclTensor*, computation output): coordinates of the affine image on the original image. The data type is the same as that of theta. It supports . Its can be ND.
      • [object Object]Atlas training products[object Object]: The data type can be FLOAT32 or FLOAT16.
      • [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 type can be FLOAT32, FLOAT16, or BFLOAT16.
    • [object Object] (uint64_t*, output): size of the workspace to be allocated on the device.
    • [object Object] (aclOpExecutor**, output): operator executor, covering the operator computation process.
  • Returns:

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

[object Object]
[object Object]
  • Parameters:

    • [object Object] (void*, input): address of the workspace to be allocated on the device.
    • [object Object] (uint64_t, input): size of the workspace to be allocated on the device, which is obtained by calling [object Object].
    • [object Object] (aclOpExecutor*, input): operator executor, covering the operator computation process.
    • [object Object] (aclrtStream, input): stream for executing the task.
  • Returns:

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

[object Object]
  • Deterministic computation:

    • [object Object] defaults to a deterministic implementation.
  • The values of [object Object], [object Object], and [object Object] in [object Object] must be within the value range of (0, 100000].

[object Object]

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

[object Object]