[XLA] Clean up our handling of ExecutionProfile and add a test case
authorSanjoy Das <sanjoy@google.com>
Wed, 10 Jan 2018 22:28:01 +0000 (14:28 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 10 Jan 2018 22:32:14 +0000 (14:32 -0800)
commitd4bfabc0cf744b890319d4612c2704e74fbc4eac
treea485b3b8a8df1cfba4b9ffe2252b379f7a6924d5
parent39fc480ba07bb3f10126587fff54508bd0974f29
[XLA] Clean up our handling of ExecutionProfile and add a test case

ExecutionProfile::compute_cycle_count never worked for CPU and GPU with Hlo
profiling disabled, as far as I can tell.
PiperOrigin-RevId: 181517824
tensorflow/compiler/xla/service/cpu/cpu_compiler.cc
tensorflow/compiler/xla/service/cpu/cpu_executable.cc
tensorflow/compiler/xla/service/executable.cc
tensorflow/compiler/xla/service/gpu/gpu_executable.cc
tensorflow/compiler/xla/service/hlo_execution_profile.h
tensorflow/compiler/xla/tests/BUILD
tensorflow/compiler/xla/tests/execution_profile_test.cc [new file with mode: 0644]