UNPKG

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