MCPcopy Create free account
hub / github.com/tensorflow/tfjs / time

Method time

tfjs-backend-cpu/src/backend_cpu.ts:199–204  ·  view source on GitHub ↗
(f: () => void)

Source from the content-addressed store, hash-verified

197 }
198
199 override async time(f: () => void): Promise<BackendTimingInfo> {
200 const start = util.now();
201 f();
202 const kernelMs = util.now() - start;
203 return {kernelMs};
204 }
205
206 override memory() {
207 return {

Callers

nothing calls this directly

Calls 2

nowMethod · 0.65
fFunction · 0.50

Tested by

no test coverage detected