Skip to content

Commit

Permalink
[Estimator] Fix Estimator export_savedmodel to oss. (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
candyzone committed Nov 15, 2022
1 parent b0c0123 commit 7cb9f95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tensorflow_estimator/python/estimator/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,8 @@ def _export_all_saved_models(
gfile.MakeDirs(dest_path)
gfile.Copy(source, dest_absolute)

gfile.Rename(temp_export_dir, export_dir)
# '/' is needed when rename a oss directory.
gfile.Rename(temp_export_dir + b'/', export_dir)
return export_dir

def _add_meta_graph_for_mode(self,
Expand Down

0 comments on commit 7cb9f95

Please sign in to comment.