Tensorflow.js tf.layers countParams() Method
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 .countParams() function is used to find the absolute count of numbers such as float32, int32 in the stated weights.
Parameters: This method doesn’t hold any parameter.
Return Value: It returns number.
Output: Here, truncatedNormal() method is used to create a tf.Tensor along with values that are sampled from a truncated normal distribution, zeros() method is used to create a tf.Tensor along with all the elements that are set to 0 and setWeights() method is used to set the weights.
Output: Here, ones() method is used to create a tf.Tensor along with all the elements that are set to 1.
6 4 9
Please Login to comment...