diff --git a/python/paddle/fluid/dygraph/dygraph_to_static/utils.py b/python/paddle/fluid/dygraph/dygraph_to_static/utils.py index 8b4a7ac645ec035fcb4e9ed8e9d63d82fc2bb744..9687efb942efafb1d71655a4d77833e38858da51 100644 --- a/python/paddle/fluid/dygraph/dygraph_to_static/utils.py +++ b/python/paddle/fluid/dygraph/dygraph_to_static/utils.py @@ -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: