[object Object]

[object Object][object Object]undefined
[object Object]
  • This API performs the 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 is divided into two phases (../common/two_phase_interfaces.md). You must call aclnnLinalgCrossGetWorkspaceSize to obtain the workspace size required for computation and the executor that contains the operator computation process, and then call aclnnLinalgCross to perform the computation.

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

    [object Object]
    • The Atlas training products do not support BFLOAT16.
  • Returns

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

    The first-phase API performs input parameter validation. The following errors may be returned:

    [object Object]
[object Object]
  • Parameters

    [object Object]
  • 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]