Tensorflow.js tf.dot() 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.dot() function is used to compute the dot product of two given matrices or vectors, t1 and t2.
Parameters: This function accepts a parameter which is illustrated below:
- t1: It is the first tensor for the dot operation.
- t2: It is the second tensor for the dot operation.
Return Value: It returns the dot product of two given matrices or vectors t1 and t2.
Tensor [16, 21] Tensor [13, 23] Tensor [[19, 24, 29], [33, 42, 51]]
Tensor [29, 36]