Skip to content
This repository was archived by the owner on Aug 15, 2019. It is now read-only.

Commit 56a3325

Browse files
author
Nikhil Thorat
authored
Return kernelMs from benchmarks demo. (#722)
1 parent 97bc9dd commit 56a3325

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

demos/benchmarks/benchmark_util.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ export async function warmupAndBenchmarkGPU(benchmark: () => dl.Tensor):
77
const out = benchmark();
88
await out.data();
99
out.dispose();
10-
// Real timing.
11-
return dl.time(benchmark);
10+
return (await dl.time(benchmark)).kernelMs;
1211
}

0 commit comments

Comments
 (0)