-
Notifications
You must be signed in to change notification settings - Fork 752
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add enable_to_static_cn * change overview: * Apply suggestions from code review Co-authored-by: Nyakku Shigure <[email protected]> * Apply suggestions from code review Co-authored-by: Nyakku Shigure <[email protected]> * add True/False meaning * Apply suggestions from code review Co-authored-by: Nyakku Shigure <[email protected]> --------- Co-authored-by: Nyakku Shigure <[email protected]>
- Loading branch information
1 parent
b24470e
commit 3cc1603
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.. _cn_api_paddle_jit_enable_to_static: | ||
|
||
enable_to_static | ||
------------------------------- | ||
|
||
.. py:function:: paddle.jit.enable_to_static(enable_to_static_bool) | ||
全局启用或禁用从动态图到静态图的转换。 | ||
|
||
|
||
参数 | ||
:::::::::::: | ||
|
||
- **enable_to_static_bool** (bool) - 启用或禁用动转静。为 ``True`` 时启用动转静, 为 ``False`` 时关闭动转静。 | ||
|
||
|
||
代码示例 | ||
:::::::::::: | ||
|
||
COPY-FROM: paddle.jit.enable_to_static |