Tensorflow.js tf.sqrt() 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.sqrt() function is used to return the square root of the specified tensor’s element.
tf.sqrt( x )
Parameters: This function accept single parameter which is illustrated below:
- x: The specified input tensor.
Return Value: It returns the square root of the specified tensor’s element.
Tensor [2, 3, 4, 5]
Tensor [0, 1, 1.4142135, 1.3038405, 1.5811388]