Skip to content

Commit f09a3af

Browse files
authored
[Estimator] Fix str as bytes in Python3. (#10)
1 parent a60d058 commit f09a3af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_estimator/python/estimator/estimator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ def _export_all_saved_models(
881881
gfile.Copy(source, dest_absolute)
882882

883883
# '/' is needed when rename a oss directory.
884-
gfile.Rename(temp_export_dir + '/', export_dir)
884+
gfile.Rename(temp_export_dir + compat.as_bytes('/'), export_dir)
885885
return export_dir
886886

887887
def _add_meta_graph_for_mode(self,

0 commit comments

Comments
 (0)