[object Object]

[object Object][object Object]undefined
[object Object]
  • This API is used to compute the bitwise OR of each element in the input tensor self and the input scalar other. The input [object Object] and [object Object] must be of the INT or BOOL type. For the BOOL type, the operator computes the logical OR.

  • Formula:

    outi=selfiother\text{out}_i = \text{self}_i \, | \, \text{other}
[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 aclnnBitwiseOrScalarGetWorkspaceSize or aclnnInplaceBitwiseOrScalarGetWorkspaceSize to obtain the workspace size required for computation and the executor that contains the operator execution process, and then call aclnnBitwiseOrScalar or aclnnInplaceBitwiseOrScalar to perform the computation.

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

    [object Object]
    • Ascend 950PR/Ascend 950DT:

      • self and other must meet the requirements of .
      • The out data type also supports UINT32, UINT64, COMPLEX64, and COMPLEX128.
    • [object Object]Atlas inference products[object Object] and [object Object]Atlas training products[object Object]: The data type cannot be 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]
  • Parameters:

    [object Object]
    • Ascend 950PR/Ascend 950DT: selfRef and other must meet the and must be convertible data types after deduction.
  • 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 .

[object Object]

aclnnInplaceBitwiseOrScalar sample code:

[object Object]