FilesLast commitLast update
18 days ago
2 months ago
3 months ago
25 days ago
22 days ago
25 days ago
11 days ago
10 days ago
30 days ago
1 month ago
10 days ago
README

LogicalOr

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: performs a logical OR operation on the elements of the given input tensors. When the two input tensors are not of the bool type, 0 is regarded as False and a non-zero value is regarded as True.

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
self Input Input parameter for the logical_or computation. The shape must satisfy the broadcast relationship with other. BOOL, INT8, UINT8, INT16, INT32, INT64, FLOAT16, BFLOAT16, FLOAT ND
other Input Input parameter for the logical_or computation. The shape must satisfy the broadcast relationship with self. BOOL, INT8, UINT8, INT16, INT32, INT64, FLOAT16, BFLOAT16, FLOAT ND
out Output Output parameter for the logical_or computation. The shape is the same as the shape of self and other after broadcasting. BOOL ND
  • Ascend 950PR&950DT products: All data types (BOOL, INT8, UINT8, INT16, INT32, INT64, FLOAT16, BFLOAT16, FLOAT) are supported.

  • Atlas A3 products, Atlas A2 products, Atlas inference products, and Atlas training products:

    • Only the BOOL data type is supported for self and other.

Constraint Description

None

Invocation Description

Invocation Method Invocation Sample Description
aclnn invocation test_aclnn_logical_or Invokes the LogicalOr operator through the aclnnLogicalOr API.
aclnn invocation test_aclnn_inplace_logical_or Invokes the LogicalOr operator through the aclnnInplaceLogicalOr API.