Executes the provided function f() and returns a promise that resolves
with information about the function's memory use:
newBytes: the number of new bytes allocated
newTensors: the number of new tensors created
peakBytes: the peak number of bytes allocated
kernels: an array of objects for each kernel involved that reports
their input and output shapes, number of bytes used, and number of new
tensors created.
kernelNames: an array of unique strings with just the names of the
kernels in the kernels array.
Executes the provided function
f()
and returns a promise that resolves with information about the function's memory use:newBytes
: the number of new bytes allocatednewTensors
: the number of new tensors createdpeakBytes
: the peak number of bytes allocatedkernels
: an array of objects for each kernel involved that reports their input and output shapes, number of bytes used, and number of new tensors created.kernelNames
: an array of unique strings with just the names of the kernels in thekernels
array.