Tensorflow.js tf.keep() Function
Tensorflow.js is an open-source library that is developed by Google for running machine learning models as well as deep learning neural networks in the browser or node environment.
The .keep() function is used to hold a tensor input that is formed within a tf.tidy() method from being spontaneously discarded.
- result: It is the stated tensor input which is to be held from being discarded.
Return Value: It returns tf.Tensor object.
Tensor [0.2675007, 0.8775977, 1, NaN, 1, 0.8775977]