Tensorflow.js tf.fetch() 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 .fetch() function is used to return a platform dedicated operation of fetch. Moreover, in case fetch is specified in contact with the global object i.e. window, process, and so on, then tf.util.fetch returns that function else returns a platform dedicated explication.
- path: It is the stated path which is of type string.
- requestInits: The stated RequestInit. It is optional and is of type string.
Return Value: It returns the promise of response.