UNPKG

@tensorflow/tfjs-core

Version:

Hardware-accelerated JavaScript library for machine intelligence

22 lines (21 loc) 746 B
/// <amd-module name="@tensorflow/tfjs-core/dist/ops/logical_and" /> import { Tensor } from '../tensor'; import { TensorLike } from '../types'; /** * Returns the truth value of `a AND b` element-wise. Supports broadcasting. * * ```js * const a = tf.tensor1d([false, false, true, true], 'bool'); * const b = tf.tensor1d([false, true, false, true], 'bool'); * * a.logicalAnd(b).print(); * ``` * * @param a The first input tensor. Must be of dtype bool. * @param b The second input tensor. Must be of dtype bool. * * @doc {heading: 'Operations', subheading: 'Logical'} */ declare function logicalAnd_<T extends Tensor>(a: Tensor | TensorLike, b: Tensor | TensorLike): T; export declare const logicalAnd: typeof logicalAnd_; export {};