UNPKG

746 BTypeScriptView Raw
1/// <amd-module name="@tensorflow/tfjs-core/dist/ops/logical_and" />
2import { Tensor } from '../tensor';
3import { TensorLike } from '../types';
4/**
5 * Returns the truth value of `a AND b` element-wise. Supports broadcasting.
6 *
7 * ```js
8 * const a = tf.tensor1d([false, false, true, true], 'bool');
9 * const b = tf.tensor1d([false, true, false, true], 'bool');
10 *
11 * a.logicalAnd(b).print();
12 * ```
13 *
14 * @param a The first input tensor. Must be of dtype bool.
15 * @param b The second input tensor. Must be of dtype bool.
16 *
17 * @doc {heading: 'Operations', subheading: 'Logical'}
18 */
19declare function logicalAnd_<T extends Tensor>(a: Tensor | TensorLike, b: Tensor | TensorLike): T;
20export declare const logicalAnd: typeof logicalAnd_;
21export {};