change default mode

This commit is contained in:
chujinjin 2023-01-28 10:44:48 +08:00
parent a5ada6bb96
commit 34d00991e0
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

@ -737,7 +737,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: