!48122 change default mode to pynative in docs

Merge pull request !48122 from chujinjin/code_docs_change_default_mode_2.0_alpha
This commit is contained in:
i-robot 2023-01-29 11:24:47 +00:00 committed by Gitee
commit 63a8b36505
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ mindspore.set_context
在运行程序之前应配置context。如果没有配置默认情况下将根据设备目标进行自动设置。
.. note::
设置属性时必须输入属性名称。net初始化后不建议更改模式因为一些操作的实现在Graph模式和PyNative模式下是不同的。默认值GRAPH_MODE。
设置属性时必须输入属性名称。net初始化后不建议更改模式因为一些操作的实现在Graph模式和PyNative模式下是不同的。默认值PYNATIVE_MODE。
某些配置适用于特定的设备,有关详细信息,请参见下表:

View File

@ -722,7 +722,7 @@ def set_context(**kwargs):
Note:
Attribute name is required for setting attributes.
The mode is not recommended to be changed after net was initialized because the implementations of some
operations are different in graph mode and pynative mode. Default: GRAPH_MODE.
operations are different in graph mode and pynative mode. Default: PYNATIVE_MODE.
Some configurations are device specific, see the below table for details: