Tensorflow.js tf.div() 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.div() function is used to divides the two specified Tensors element-wise. It supports broadcasting.
tf.div (a, b)
Parameters: This function accepts two parameters which are illustrated below:
- a: The first input tensor as the numerator.
- b: The second input tensor as the denominator. It should must have the same data type as “a”.
Return Value: It returns a Tensor for the result of a/b, where a is the first Tensor and b is the second Tensor.
Tensor [1.5, 1, 5, 2.1428571]
Tensor [0.3333333, 3.9999998, 5.6666665, 6.666666]
My Personal Notes arrow_drop_up
Please Login to comment...