HLO profiling for tfcompile.
authorSanjoy Das <sanjoy@google.com>
Sat, 28 Apr 2018 03:06:35 +0000 (20:06 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Sat, 28 Apr 2018 03:09:38 +0000 (20:09 -0700)
commit74747435c2442084e8de53bc73311152f270ae88
treed7d9a57b195039d277fc8af9814290a787d04cc4
parentce8e19a756f71fa66f60a28515c64c106ca7f6a1
HLO profiling for tfcompile.

This CL extends the --xla_hlo_profile knob to tfcompile.  tf_library rules can
now set enable_xla_hlo_profiling to True to:

 - Have the generated code update per-HLO profile counters as it executes.
 - Have tfcompile generate and serialize an instance HloProfilePrinterData with
   a compiled model that can be used to pretty-print the collected profile
   counters.

PiperOrigin-RevId: 194627272
13 files changed:
tensorflow/compiler/aot/codegen.cc
tensorflow/compiler/aot/codegen.h
tensorflow/compiler/aot/codegen_test.cc
tensorflow/compiler/aot/codegen_test_h.golden
tensorflow/compiler/aot/compile.cc
tensorflow/compiler/aot/embedded_protocol_buffers.cc
tensorflow/compiler/aot/embedded_protocol_buffers.h
tensorflow/compiler/aot/tests/BUILD
tensorflow/compiler/aot/tests/tfcompile_test.cc
tensorflow/compiler/aot/tfcompile.bzl
tensorflow/compiler/aot/tfcompile_main.cc
tensorflow/compiler/xla/service/cpu/cpu_compiler.cc
tensorflow/compiler/xla/service/cpu/cpu_compiler.h