message: Fix bug in custom_export_strategy.py for python 3
  by add compat.as_bytes
diff: @@ -32,6 +32,7 @@ from tensorflow.python.framework import ops
  from tensorflow.python.platform import gfile
  from tensorflow.python.saved_model import loader as saved_model_loader
  from tensorflow.python.saved_model import tag_constants
  +from tensorflow.python.util import compat
  _SPARSE_FLOAT_FEATURE_NAME_TEMPLATE = "%s_%d"
  @@ -88,9 +89,9 @@ def make_custom_export_strategy(name,
  len(sparse_float_indices), len(sparse_int_indices))
  sorted_by_importance = sorted(
  feature_importances.items(), key=lambda x: -x[1])
  - assets_dir = os.path.join(result_dir, "assets.extra")
  + assets_dir = os.path.join(compat.as_bytes(result_dir), compat.as_bytes("assets.extra"))
  gfile.MakeDirs(assets_dir)
  - with gfile.GFile(os.path.join(assets_dir, "feature_importances"),
  + with gfile.GFile(os.path.join(compat.as_bytes(assets_dir), compat.as_bytes("feature_importances")),
  "w") as f:
  f.write("\n".join("%s, %f" % (k, v) for k, v in sorted_by_importance))
  return result_dir
  