[object Object]

[object Object][object Object]undefined
[object Object]
  • This API performs the bitwise OR operation on each element in the tensor self and the corresponding element in the tensor other. The tensors must be of the INT or BOOL type. For the BOOL type, the operator computes the logical OR.

  • Formula:

    outi=selfiotheri\text{out}_i = \text{self}_i \, | \, \text{other}_i
[object Object]

[object Object] and [object Object] implement the same function in different ways. Select a proper operator based on your requirements.

  • [object Object]: An output tensor object needs to be created to store the computation result.
  • [object Object]: No output tensor object needs to be created, and the computation result is written in place to the input tensor's memory.

Each operator is divided into two phases (../common/two-phase-api.md). You must call aclnnBitwiseOrTensorGetWorkspaceSize or aclnnInplaceBitwiseOrTensorGetWorkspaceSize to obtain the workspace size required for computation and the executor that contains the operator computation process, and then call aclnnBitwiseOrTensor or aclnnInplaceBitwiseOrTensor to perform computation.

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

    [object Object]
    • Ascend 950PR/Ascend 950DT: The output data type also supports FLOAT, FLOAT16, DOUBLE, BFLOAT16, COMPLEX64, and COMPLEX128.
  • 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]
  • Parameters:

    [object Object]
  • 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] and [object Object] each default to a deterministic implementation.
[object Object]

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

aclnnBitwiseOrTensor sample code:

[object Object]

aclnnInplaceBitwiseOrTensor sample code:

[object Object]