Tensorflow.js tf.moments() Function
The tf.moments() is used to calculate the mean and variance of tensor passed as an argument in the function. The mean and variance are calculated by aggregating the contents of the tensor across the axes passed in parameters. Syntax: tf.moments(tensor, axis, keepdims)Parameters: This method accepts