Tensorflow.js tf.data.Dataset.concatenate() Function Last Updated : 25 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. It also helps the developers to develop ML models in JavaScript language and can use ML directly in the browser or in Node.js. The tf.data.Dataset.concatenate() function is used to concatenate the Dataset with another. Syntax: concatenate(dataset) Parameters: dataset: A Dataset to be concatenated onto this one. Return Value: It returns tf.data.Dataset Example 1: JavaScript const gfg = tf.data.array([1, 2, 3]); const geeks = tf.data.array([6, 5, 4]); const gfg1 = geeks.concatenate(gfg); await gfg1.forEachAsync(e => console.log(e)); Output: 6 5 4 1 2 3 Example 2: JavaScript const gfg = tf.data.array(['a', 'b', 'c', 'd']); const geeks = tf.data.array([6, 5, 4]); const gfg1 = geeks.concatenate(gfg); console.log(gfg1); Output: { "size": 7 } Reference: https://js.tensorflow.org/api/latest/#tf.data.Dataset.concatenate Comment More infoAdvertise with us Next Article Tensorflow.js tf.data.Dataset.concatenate() Function D dheerchanana2002 Follow Improve Article Tags : JavaScript Web Technologies Tensorflow.js Similar Reads Tensorflow.js tf.data.Dataset.map() 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 in Node.js. The tf. 1 min read Tensorflow.js tf.data.Dataset.skip() 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 in Node.js. The tf. 1 min read Tensorflow.js tf.data.Dataset.repeat() 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 in Node.js. The tf. 1 min read Tensorflow.js tf.data.Dataset.filter() 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 in Node.js. The tf. 1 min read Tensorflow.js tf.layers.concatenate() 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.layers.concatenate() function is used to concatenate an array of inputs. Syntax: tf.layers.concatenate() Parameters: args(Objec 2 min read Like