Description: Performs linear_cross operation on the input tensor.
Formula:
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]
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
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
- Deterministic computation:
[object Object]defaults to deterministic implementation.
The following example is for reference only. For details, see .