def _copy_model(in_path, out_path):
  """Copy model checkpoint for future use."""
  tf.logging.info("Copying checkpoint from %s to %s.", in_path, out_path)
  tf.gfile.Copy(
      in_path + ".data-00000-of-00001",
      out_path + ".data-00000-of-00001",
      overwrite=True)
  tf.gfile.Copy(in_path + ".index", out_path + ".index", overwrite=True)
  tf.gfile.Copy(in_path + ".meta", out_path + ".meta", overwrite=True)
Copy model checkpoint for future use.
language/labs/drkit/run_dualencoder_qa.py