LogicalAnd
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 AND check on the corresponding elements of the two input tensors and outputs a Boolean tensor (True/False).
-
Computation formula:
out=input1∧input2out=input1∧input2
Parameter Description
| Parameter Name | Input/Output/Attribute | Description | Data Type | Data Format |
|---|---|---|---|---|
| input_1 | Input | Input parameter for the logical_and computation, which is input_1 in the formula. | BOOL | ND |
| input_2 | Input | Input parameter for the logical_and computation, which is input_2 in the formula. | BOOL | ND |
| out | Output | Output parameter for the logical_and computation, which is out in the formula. | BOOL | ND |
- Atlas training products and Atlas inference products: BFLOAT16 is not supported.
Constraint Description
None
Invocation Description
| Invocation Method | Sample Code | Description |
|---|---|---|
| aclnn invocation | test_aclnn_logical_and | Invokes the LogicalAnd operator through the aclnnLogicalAnd API. |
| aclnn invocation | test_aclnn_inplace_logical_and | Invokes the logical_and operator through the aclnnLogicalAnd&aclnnInplaceLogicalAnd APIs |
| Graph-mode invocation | - | Invokes the LogicalAnd operator by building a graph through the operator IR. |