[object Object]

[object Object][object Object]undefined
[object Object]
  • Description: Performs linear_cross operation on the input tensor.

  • Formula:

out=self×other=ijkx1y1z1x2y2z2=(y1z2y2z1)i(x1z2x2z1)j+(x1y2x2y1)kout = self\times other = \begin{vmatrix}i&j&k\\x_1&y_1&z_1\\x_2&y_2&z_2\end{vmatrix} = (y_1z_2-y_2z_1)i-(x_1z_2-x_2z_1)j+(x_1y_2-x_2y_1)k [object Object]

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

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

    • self (aclTensor*, computation input): self in the formula, aclTensor on the device. The data type is the same as that of other and out. are supported. The supports ND. The shape supports 0 to 8 dimensions, and must meet with [object Object], and the value of the axis specified by [object Object] is 3.

      • [object Object]Atlas training products[object Object]: The data type can be INT8, INT16, INT32, INT64, UINT8, FLOAT16, FLOAT, FLOAT64, COMPLEX64, or COMPLEX128.
      • [object Object]Atlas A2 training products/Atlas A2 inference products[object Object], [object Object]Atlas A3 training products/Atlas A3 inference products[object Object];: The data type can be INT8, INT16, INT32, INT64, UINT8, FLOAT16, BFLOAT16, FLOAT, FLOAT64, COMPLEX64, or COMPLEX128.
    • [object Object] (aclTensor*, computation input): [object Object] in the formula, [object Object] on the device. The data type is the same as that of [object Object] and [object Object]. are supported. The supports ND. The shape supports 0 to 8 dimensions, and must meet the with [object Object].

      • [object Object]Atlas training products[object Object]: The data type can be INT8, INT16, INT32, INT64, UINT8, FLOAT16, FLOAT, FLOAT64, COMPLEX64, or COMPLEX128.
      • [object Object]Atlas A2 training products/Atlas A2 inference products[object Object], [object Object]Atlas A3 training products/Atlas A3 inference products[object Object];: The data type can be INT8, INT16, INT32, INT64, UINT8, FLOAT16, BFLOAT16, FLOAT, FLOAT64, COMPLEX64, or COMPLEX128.
    • [object Object] (int64_t, computation input): axis for linear_cross of [object Object]. The data type is INT64. If [object Object] is not specified, the default value is [object Object]. The value range is [–Number of dimensions of [object Object], Number of dimensions of [object Object] – 1].

    • [object Object] (aclTensor*, computation output): output [object Object] in the formula, [object Object] on the device. The data type is the same as that of [object Object] and [object Object]. are supported. The supports ND, and the shape must be the same as that after [object Object] and [object Object] are broadcast.

      • [object Object]Atlas training products[object Object]: The data type can be INT8, INT16, INT32, INT64, UINT8, FLOAT16, FLOAT, FLOAT64, COMPLEX64, or COMPLEX128.
      • [object Object]Atlas A2 training products/Atlas A2 inference products[object Object], [object Object]Atlas A3 training products/Atlas A3 inference products[object Object];: The data type can be INT8, INT16, INT32, INT64, UINT8, FLOAT16, BFLOAT16, FLOAT, FLOAT64, COMPLEX64, or COMPLEX128.
    • [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 computation:
    • [object Object] defaults to deterministic implementation.
[object Object]

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

[object Object]