Tensorflow.js tf.Tensor class .dispose() Method
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 .dispose() function is used to dispose the stated tf.Tensor from the memory.
Parameters: This method does not hold any parameters.
Return Value: It returns void.
An error occurred on line: 11 Tensor is disposed.
Here, an error occurred while printing the tensor output as the tensor is already being disposed of.