UNPKG

573 BTypeScriptView Raw
1import { Tensor } from '../tensor';
2import { TensorLike } from '../types';
3/**
4 * Adds a list of `tf.Tensor`s element-wise, each with the same shape and dtype.
5 *
6 * ```js
7 * const a = tf.tensor1d([1, 2]);
8 * const b = tf.tensor1d([3, 4]);
9 * const c = tf.tensor1d([5, 6]);
10 *
11 * tf.addN([a, b, c]).print();
12 * ```
13 * @param tensors A list of tensors with the same shape and dtype.
14 * @doc {heading: 'Operations', subheading: 'Arithmetic'}
15 */
16declare function addN_<T extends Tensor>(tensors: Array<T | TensorLike>): T;
17export declare const addN: typeof addN_;
18export {};