MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / remove_if_exit

Function remove_if_exit

python/paddle/utils/cpp_extension/extension_utils.py:1200–1202  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

1198 """
1199
1200 def remove_if_exit(filepath):
1201 if os.path.exists(filepath):
1202 os.remove(filepath)
1203
1204 # NOTE: Use unique id as suffix to avoid write same file at same time in
1205 # both multi-thread and multi-process.

Callers 1

_generate_python_moduleFunction · 0.70

Calls 2

existsMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected