This is a example for how to use Ahead-Of-Time (AOT) compilation on TensorFlow XLA (https://www.tensorflow.org/performance/xla/tfcompile). The code are extracted form the TensorFlow github repo.
Usage:
1. Clone Tensorflow github repo. Configure the repo with XLA enabled. Create a folder named plugins.
2. Download all code here and put them in tensoflow/plugins folder.
3. build --config=opt //plugins:my_binary
4. execute bazel-bin/plugins/my_binary and it should return "Success".