FilesLast commitLast update
14 days ago
2 months ago
3 months ago
24 days ago
20 days ago
24 days ago
24 days ago
24 days ago
28 days ago
1 month ago
9 days ago
README

BitwiseOr

English | 简体中文

Product Support Status

Product Supported
Ascend 950PR&950DT products √
Atlas A3 products √
Atlas A2 products √
Atlas 200I/500 A2 inference products ×
Atlas inference products √
Atlas training products √

Function Description

  • Operator function: computes the bitwise OR of each element in the input tensor self and the input scalar other. The inputs self and other must be integer or Boolean types. For Boolean types, the logical OR is computed.

  • Computation formula:

    outi=selfi ∣ other\text{out}_i = \text{self}_i \, | \, \text{other}

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
self Input Input self in the formula. INT16, UINT16, INT32, INT64, INT8, UINT8, UINT32, UINT64 ND
other Input Input other in the formula. INT16, UINT16, INT32, INT64, INT8, UINT8, UINT32, UINT64 ND
out Output Output out in the formula. INT16, UINT16, INT32, INT64, INT8, UINT8, UINT32, UINT64 ND
  • Atlas inference products and Atlas training products: the data types INT8, UINT8, UINT32, INT64, and UINT64 are not supported.
  • Atlas A2 products and Atlas A3 products: INT8, UINT8, UINT32, and UINT64 are not supported.

Constraint Description

  • None

Invocation Description

Invocation Method Sample Code Description
aclnn API test_aclnn_bitwise_or_scalar Invokes the BitwiseOr operator through the aclnnBitwiseOrScalar API.
aclnn API test_aclnn_bitwise_or_tensor Invokes the BitwiseOr operator through the aclnnBitwiseOrTensor API.
aclnn API test_aclnn_inplace_bitwise_or_scalar Invokes the BitwiseOr operator through the aclnnInplaceBitwiseOrScalar API.
aclnn API test_aclnn_inplace_bitwise_or_tensor Invokes the BitwiseOr operator through the aclnnInplaceBitwiseOrTensor API.