Tensorflow.js tf.profile() Function
The tf.profile() function is used for executing the provided function and the function returns a Promise that resolves with information about its memory use.
- f: It is a callback function.
Return Value: It returns Promise.
peakBytes: 48 kernelName: Square