Adds a list of tf.Tensors element-wise, each with the same shape and dtype.
tf.Tensor
const a = tf.tensor1d([1, 2]);const b = tf.tensor1d([3, 4]);const c = tf.tensor1d([5, 6]);tf.addN([a, b, c]).print(); Copy
const a = tf.tensor1d([1, 2]);const b = tf.tensor1d([3, 4]);const c = tf.tensor1d([5, 6]);tf.addN([a, b, c]).print();
A list of tensors with the same shape and dtype.
Generated using TypeDoc
Adds a list of
tf.Tensor
s element-wise, each with the same shape and dtype.