diff options
author | 2018-10-08 09:53:31 -0700 | |
---|---|---|
committer | 2018-10-08 10:07:38 -0700 | |
commit | da3abf6afeaf781b932bce9ccb6c17da911e49b6 (patch) | |
tree | cfbcf8888da181403d2fe630b95d78156fec92f5 /tensorflow/core | |
parent | 07df147ab20c4a5329148e5fb5f7f6b187cb73a4 (diff) |
Benchmark for comparing original cond and cond_v2 performance.
This benchmark creates many intermediates values, so we can make sure there's no performance overhead (it looks like there might be currently, or it might be from some other difference). It also runs in a defun and in legacy graph mode.
Results from my machine:
entry {
name: "CondWithManyIntermediatesBenchmark.benchmark_cond_v1_defun"
iters: 500
wall_time: 1.25822591782
}
entry {
name: "CondWithManyIntermediatesBenchmark.benchmark_cond_v2_defun"
iters: 500
wall_time: 5.99376106262
}
entry {
name: "CondWithManyIntermediatesBenchmark.benchmark_cond_v1_graph"
iters: 500
wall_time: 2.05277585983
}
entry {
name: "CondWithManyIntermediatesBenchmark.benchmark_cond_v2_graph"
iters: 500
wall_time: 2.84808516502
}
Clearly we have some work to do! I haven't looked into the time differences at all yet.
PiperOrigin-RevId: 216202325
Diffstat (limited to 'tensorflow/core')
0 files changed, 0 insertions, 0 deletions