Skip to content

Commit

Permalink
fix multiprocess error (#47301)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurelius84 authored Oct 25, 2022
1 parent 5e97651 commit b420d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/fluid/dygraph/dygraph_to_static/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ def get_temp_dir():
"""
Return @to_static temp directory.
"""
dir_name = "paddle/to_static_tmp"
dir_name = "paddle/to_static_tmp/{pid}".format(pid=os.getpid())
temp_dir = os.path.join(os.path.expanduser('~/.cache'), dir_name)
is_windows = sys.platform.startswith('win')
if is_windows:
Expand Down

0 comments on commit b420d4d

Please sign in to comment.