• Returns the min of a and b (a < b ? a : b) element-wise. Supports broadcasting.

    We also expose minimumStrict which has the same signature as this op and asserts that a and b are the same shape (does not broadcast).

    const a = tf.tensor1d([1, 4, 3, 16]);
    const b = tf.tensor1d([1, 2, 9, 4]);

    a.minimum(b).print(); // or tf.minimum(a, b)
    // Broadcast minimum a with b.
    const a = tf.tensor1d([2, 4, 6, 8]);
    const b = tf.scalar(5);

    a.minimum(b).print(); // or tf.minimum(a, b)

    Type Parameters

    Parameters

    Returns T

    Doc

Generated using TypeDoc