Tensorflow.js tf.maxPool3d() 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.maxPool3d() function is used compute the 3D max pooling. Syntax: tf.maxPool3d (x, filterSize, strides, pad, dimRoundingMode?, dataFormat?) Parameters: This function accepts a parameter which is illustrated below: x: This specifies the input tensor of rank 5 or rank 4.filterSize: This specifies filterDepth, filterHeight, filterWidth. If the specified filterSize is a single number, then filterWidth == filterHeight == filterDepth.strides: The specifies the strides of the pooling: [strideDepth, strideHeight, strideWidth]. If the specified strides is a single number, then strideWidth == strideHeight ==strideDepth .pad: This specifies the type of the padding algorithm.dimRoundingMode: This is optional. This specifies a string from: 'ceil', 'round', 'floor'. If nothing is provided, then it will default its value to truncate.dataFormat: This is optional. This specifies the data format of the output and input data. Return Value: It returns the 3D max pooling of the tensor's elements. Example 1: JavaScript // Importing the tensorflow.js library import * as tf from "@tensorflow/tfjs" // Initializing a tensor of some elements let pool = tf.tensor5d([11, 12, 13, 14], [2, 1, 1, 1, 2]); // Calling the .maxPool3d() let output = tf.maxPool3d(pool, 1, 2, 'valid'); // Printing the output. output.print(); Output: Tensor [ [ [ [[11, 12],]]], [ [ [[13, 14],]]]] Example 2: JavaScript // Importing the tensorflow.js library import * as tf from "@tensorflow/tfjs" // Initializing a tensor of some elements let maxPool = tf.tensor5d([51, 52, 53, 54, 55, 56, 57, 58], [1, 2, 2, 2, 1]); // Calling the .avgPool3d() function and // printing the result. tf.avgPool3d(maxPool, 2, 1, 'valid').print(); Output: Tensor [ [ [ [[54.5],]]]] Reference:https://js.tensorflow.org/api/3.6.0/#maxPool3d Comment More infoAdvertise with us Next Article Tensorflow.js tf.maxPool3d() Function T thacker_shahid Follow Improve Article Tags : JavaScript Web Technologies Tensorflow.js Similar Reads Tensorflow.js tf.pool() Function Introduction: 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 .pool() function is used to execute an N-D pooling functioning. Syntax: tf.pool(input, windowShape, p 2 min read Tensorflow.js tf.max() 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.max() function is used to calculate the maximum value from the specified Tensor across its dimension. It reduces the given inpu 2 min read Tensorflow.js tf.layers.maxPooling3d() Function Tensorflow.js is a Google-developed open-source toolkit for executing machine learning models and deep learning neural networks in the browser or on the node platform. It also enables developers to create machine learning models in JavaScript and utilize them directly in the browser or with Node.js. 2 min read Tensorflow.js tf.pad() 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. 2 min read Tensorflow.js tf.maxPoolWithArgmax() 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 .maxPoolWithArgmax() function is used to determine the 2D max pooling of an image along with argmax list i.e. index 3 min read Tensorflow.js tf.layers.maxPooling2d() Function Tensorflow.js is a Google-developed open-source toolkit for executing machine learning models and deep learning neural networks in the browser or on the node platform. It also enables developers to create machine learning models in JavaScript and utilize them directly in the browser or with Node.js. 2 min read Tensorflow.js tf.layers.maxPooling1d() 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. Tensorflow.js tf.layers.maxPooling1d() function is used for max pooling operation on temporal data. Syntax: tf.layers.maxPooling1d( ar 3 min read Tensorflow.js tf.maximum() 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.maximum() function is used to return the maximum of the two specified tensors element-wise. It supports broadcasting. Syntax: t 2 min read Tensorflow.js tf.profile() 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 Like