• Creates a tf.Tensor with all elements set to 0 with the same shape as the given tensor.

    const x = tf.tensor([1, 2]);
    tf.zerosLike(x).print();

    Type Parameters

    Parameters

    Returns T

    Doc

Generated using TypeDoc