message: [XLA] Use os.path for path manipulation
diff: @@ -19,6 +19,7 @@ from __future__ import division
  from __future__ import print_function
  import argparse
  +import os
  import sys
  from tensorflow.core.protobuf import saver_pb2
  @@ -53,7 +54,7 @@ def tfadd_with_ckpt(out_dir):
  sess.run(init_op)
  sess.run(y.assign(y + 42))
  # Without the checkpoint, the variable won't be set to 42.
  - ckpt = '%s/test_graph_tfadd_with_ckpt.ckpt' % out_dir
  + ckpt = os.path.join(out_dir, 'test_graph_tfadd_with_ckpt.ckpt')
  saver.save(sess, ckpt)
  @@ -68,10 +69,10 @@ def tfadd_with_ckpt_saver(out_dir):
  sess.run(init_op)
  sess.run(y.assign(y + 42))
  # Without the checkpoint, the variable won't be set to 42.
  - ckpt_file = '%s/test_graph_tfadd_with_ckpt_saver.ckpt' % out_dir
  + ckpt_file = os.path.join(out_dir, 'test_graph_tfadd_with_ckpt_saver.ckpt')
  saver.save(sess, ckpt_file)
  # Without the SaverDef, the restore op won't be named correctly.
  - saver_file = '%s/test_graph_tfadd_with_ckpt_saver.saver' % out_dir
  + saver_file = os.path.join(out_dir, 'test_graph_tfadd_with_ckpt_saver.saver')
  with open(saver_file, 'wb') as f:
  f.write(saver.as_saver_def().SerializeToString())
  @@ -129,7 +130,7 @@ def write_graph(build_graph, out_dir):
  g = ops.Graph()
  with g.as_default():
  build_graph(out_dir)
  - filename = '%s/test_graph_%s.pb' % (out_dir, build_graph.__name__)
  + filename = os.path.join(out_dir, 'test_graph_%s.pb' % build_graph.__name__)
  with open(filename, 'wb') as f:
  f.write(g.as_graph_def().SerializeToString())
  