Tensorflow.js tf.addN() Function Last Updated : 12 May, 2021 Comments Improve Suggest changes Like Article Like Report Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment. The tf.addN() function is used to add a specified list of Tensors element-wise. Each Tensor should be of the same shape and data type. Syntax: tf.addN (tensors) Parameters: This function accepts a parameter which is illustrated below: tensors: The array/list of specified tensors with the same shape and data type. Return Value: It returns a Tensor of added elements. Example 1: JavaScript // Importing the tensorflow.js library import * as tf from "@tensorflow/tfjs" // Initializing some Tensors const a = tf.tensor1d([0, 1, 2]); const b = tf.tensor1d([3, 4, 5]); // Calling the .addN() function over // the above Tensors as its parameters tf.addN([a, b]).print(); Output: Tensor [3, 5, 7] Example 2: JavaScript // Importing the tensorflow.js library import * as tf from "@tensorflow/tfjs" // Using some Tensors as the parameter // for the .addN() function tf.addN([[12, 5, 6], [3, 2, 5], [2, 7, 9]]).print(); Output: Tensor [17, 14, 20] Reference: https://js.tensorflow.org/api/latest/#addN Comment More infoAdvertise with us Next Article Tensorflow.js tf.addN() Function K Kanchan_Ray Follow Improve Article Tags : JavaScript Web Technologies Tensorflow.js Similar Reads Tensorflow tf.add() Function The tf.add() function returns the addition of two tf.Tensor objects element wise. The tf.Tensor object represents the multidimensional array of numbers. Syntax: tf.add( a, b ) Parameters:Â a: It contains the first tf.Tensor object that is to be added. The value of this parameter can be tf.TensorType 2 min read Tensorflow.js tf.atan() Function Tensorflow.js is an open-source library that is being developed by Google for running machine learning models as well as deep learning neural networks in the browser or node environment. The .atan() function is used to find the atan of the stated tensor input and is done element wise. Syntax : Â tf. 2 min read Tensorflow.js tf.asin() Function Tensorflow.js is an open-source library that is being developed by Google for running machine learning models as well as deep learning neural networks in the browser or node environment. The .asin() function is used to find the asin of the stated tensor elementwise. Syntax: Â tf.asin(x) Parameters: 2 min read Tensorflow.js tf.atan2() Function Tensorflow.js is an open-source library that is being developed by Google for running machine learning models as well as deep learning neural networks in the browser or node environment. The .atan2() function is used to find the arctangent of the stated tensor inputs and is done element wise. Moreov 2 min read Tensorflow.js tf.atanh() Function Tensorflow.js is an open-source library that is being developed by Google for running machine learning models as well as deep learning neural networks in the browser or node environment. The .atanh() function is used to find the inverse hyperbolic tan of the stated tensor input and is done elements 2 min read Tensorflow.js tf.asinh() Function Tensorflow.js is an open-source library that is being developed by Google for running machine learning models as well as deep learning neural networks in the browser or node environment. The .asinh() function is used to find the inverse hyperbolic sin of the stated tensor input and is done elements 2 min read Tensorflow.js tf.dot() Function Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment. The tf.dot() function is used to compute the dot product of two given matrices or vectors, t1 and t2. Syntax:Â tf.dot(t1, t2); Paramet 1 min read Tensorflow.js tf.acosh() Function Tensorflow.js is an open-source library that is being developed by Google for running machine learning models as well as deep learning neural networks in the browser or node environment. The .acosh() function is used to find the inverse hyperbolic cos of the stated tensor element input. Syntax: Â tf 2 min read Tensorflow.js tf.layers.add() Function Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment. It also helps the developers to develop ML models in JavaScript language and can use ML directly in the browser or Node.js. The tf.lay 2 min read Tensorflow.js tf.expandDims() Function Tensorflow.js is an open-source library that is developed by Google for running machine learning models as well as deep learning neural networks in the browser or node environment. The .expandDims() function is used to find tf.Tensor object whose rank is expanded with the help of tensor's shape by i 2 min read Like