Skip to content

Commit f57396b

Browse files
committed
Add detailed messages to cn_doc
1 parent cd665ea commit f57396b

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

docs/api/paddle/disable_signal_handler_cn.rst

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,20 @@ Paddle默认在C++层面注册了系统信号处理方法,用于优化报错
1111
但是一些特定的Python module可能需要使用某些系统信号,引发冲突。
1212
您可以通过调用本函数来关闭Paddle的系统信号处理方法
1313

14-
返回:无
14+
如果您在一个Python文件中同时使用了Paddle和下述框架的一种或多种,
15+
则请在其他框架执行前首先调用paddle.disable_signal_handler()
1516

16-
**示例代码**
17+
1.TVM框架
18+
2.ADLIK框架
1719

18-
COPY-FROM: paddle.disable_signal_handler
20+
返回
21+
:::::::::
22+
1923

24+
代码示例
25+
:::::::::
26+
27+
.. code-block:: python
28+
29+
import paddle
30+
paddle.disable_signal_handler()

0 commit comments

Comments
 (0)