Tensorflow.js tf.grads() Function
The tf.grads() function takes a function f(x) and return a function gx
- f: This is the given function for which gradients are calculated.
Return Value: It returns an array.
Tensor [1, 1]
Tensor [8, 8]