• Layer that computes the element-wise minimum of an Array of inputs.

    It takes as input a list of tensors, all of the same shape, and returns a single tensor (also of the same shape). For example:

    const input1 = tf.input({shape: [2, 2]});
    const input2 = tf.input({shape: [2, 2]});
    const minLayer = tf.layers.minimum();
    const min = minLayer.apply([input1, input2]);
    console.log(JSON.stringify(min.shape));
    // You get [null, 2, 2], with the first dimension as the undetermined batch
    // dimension.

    Parameters

    • Optional args: LayerArgs

    Returns Minimum

    Doc

Generated using TypeDoc