get_build_directory

paddle.utils.cpp_extension. get_build_directory ( verbose=False ) [source]

Return paddle extension root directory to put shared library. It could be specified by export PADDLE_EXTENSION_DIR=XXX . If not set, ~/.cache/paddle_extension will be used by default.

Returns

The root directory of compiling customized operators.

Examples:

>>> from paddle.utils.cpp_extension import get_build_directory

>>> build_dir = get_build_directory()
>>> print(build_dir)