![]() |
VOOZH | about |
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:
tf.maximum (a, b)
Parameters: This function accepts two parameters which are illustrated below:
Return Value: It returns the maximum of the two specified tensors "a" and "b" element-wise.
Example 1:
Output:
Tensor [3, 6, 8, 9]
Example 2:
Output:
Tensor [6, 6, 7, 9]
Example 3: