• Returns the size (number of elements) of the tensor given its shape.

    const shape = [3, 4, 2];
    const size = tf.util.sizeFromShape(shape);
    console.log(size);

    Parameters

    • shape: number[]

    Returns number

    Doc

Generated using TypeDoc