Returns the truth value of x AND y element-wise.
tf.raw_ops.LogicalAnd(
    x, y, name=None
)
Logical AND function.
Requires that x and y have the same shape or have
broadcast-compatible
shapes. For example, x and y can be:
- Two single elements of type bool.
- One tf.Tensorof typebooland one singlebool, where the result will be calculated by applying logical AND with the single element to each element in the larger Tensor.
- Two tf.Tensorobjects of typeboolof the same shape. In this case, the result will be the element-wise logical AND of the two input tensors.
You can also use the & operator instead.
| Usage | |
|---|---|
| 
 
 This op also supports broadcasting 
 | 
The reduction version of this elementwise operation is tf.math.reduce_all.
| Args | |
|---|---|
| x | A tf.Tensorof type bool. | 
| y | A tf.Tensorof type bool. | 
| name | A name for the operation (optional). | 
| Returns | |
|---|---|
| A tf.Tensorof type bool with the shape thatxandybroadcast to. | 
| Args | |
|---|---|
| x | A Tensorof typebool. | 
| y | A Tensorof typebool. | 
| name | A name for the operation (optional). | 
| Returns | |
|---|---|
| A Tensorof typebool. |