[object Object]

[object Object][object Object]undefined
[object Object]
  • Description: Copies elements in [object Object] to the [object Object] tensor and returns [object Object].

  • Formula:

    selfRefi=srci{selfRef}_{i} = {src}_{i}
  • Example:

    [object Object]
[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 | computation output): [object Object] in the formula. The copy between complex numbers is supported only when [object Object] is contiguous. The shape must meet the with [object Object]. are supported. The can be ND.

      • [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 INT8, INT16, INT32, INT64, UINT8, FLOAT16, FLOAT32, BOOL, DOUBLE, COMPLEX64, COMPLEX128, UINT16, UINT32, UINT64 or BFLOAT16.
      • [object Object]Atlas training products[object Object], [object Object]Atlas inference products[object Object], and [object Object]Atlas 200I/500 A2 inference products[object Object]: The data type can be INT8, INT16, INT32, INT64, UINT8, FLOAT16, FLOAT32, BOOL, DOUBLE, COMPLEX64, COMPLEX128, UINT16, UINT32 or UINT64.
    • [object Object] (aclTensor*, computation input): [object Object] in the formula. The copy between complex numbers is supported only when [object Object] is contiguous. The shape must meet the with [object Object]. are supported. The can be ND.

      • [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 INT8, INT16, INT32, INT64, UINT8, FLOAT16, FLOAT32, BOOL, DOUBLE, COMPLEX64, COMPLEX128, UINT16, UINT32, UINT64 or BFLOAT16.
      • [object Object]Atlas training products[object Object], [object Object]Atlas inference products[object Object], and [object Object]Atlas 200I/500 A2 inference products[object Object]: The data type can be INT8, INT16, INT32, INT64, UINT8, FLOAT16, FLOAT32, BOOL, DOUBLE, COMPLEX64, COMPLEX128, UINT16, UINT32 or UINT64.
    • [object Object] (uint64_t*, output): size of the workspace to be allocated on the device.

    • [object Object] (aclOpExecutor**, output): operator executor, containing 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 the first-phase API [object Object].
    • [object Object] (aclOpExecutor*, input): operator executor, containing the operator computation process.
    • [object Object] (aclrtStream, input): stream for executing the task.
  • Returns:

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

[object Object]
  • Deterministic computing:
    • [object Object] defaults to a deterministic implementation.

When the data types of [object Object] and [object Object] are inconsistent, the conversion rules for floating-point types (HIFLOAT8, FLOAT8_E5M2, and FLOAT8_E4M3FN) are as follows:

  • HIFLOAT8 -> FLOAT32, BFLOAT16, FLOAT16
  • FLOAT8_E5M2 -> FLOAT32, BFLOAT16, FLOAT16
  • FLOAT8_E4M3FN -> FLOAT32, BFLOAT16, FLOAT16
  • BFLOAT16 -> HIFLOAT8
  • FLOAT16 -> HIFLOAT8
  • FLOAT32 -> HIFLOAT8, FLOAT8_E5M2, FLOAT8_E4M3FN
[object Object]

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

[object Object]