• Adds a list of tf.Tensors element-wise, each with the same shape and dtype.

    const a = tf.tensor1d([1, 2]);
    const b = tf.tensor1d([3, 4]);
    const c = tf.tensor1d([5, 6]);

    tf.addN([a, b, c]).print();

    Type Parameters

    Parameters

    • tensors: (TensorLike | T)[]

      A list of tensors with the same shape and dtype.

    Returns T

    Doc

Generated using TypeDoc