Skip to content

Commit 4e100c7

Browse files
committed
[Estimator] Fix encode string to byte in python3.
1 parent a9b0246 commit 4e100c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_estimator/python/estimator/estimator.py

Lines changed: 1 addition & 1 deletion
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 + b'/', export_dir)
885885
return export_dir
886886

887887
def _add_meta_graph_for_mode(self,

0 commit comments

Comments
 (0)