forked from mindspore-Ecosystem/mindspore
change default mode
This commit is contained in:
parent
a5ada6bb96
commit
34d00991e0
|
@ -8,7 +8,7 @@ mindspore.set_context
|
|||
在运行程序之前,应配置context。如果没有配置,默认情况下将根据设备目标进行自动设置。
|
||||
|
||||
.. note::
|
||||
设置属性时,必须输入属性名称。net初始化后不建议更改模式,因为一些操作的实现在Graph模式和PyNative模式下是不同的。默认值:GRAPH_MODE。
|
||||
设置属性时,必须输入属性名称。net初始化后不建议更改模式,因为一些操作的实现在Graph模式和PyNative模式下是不同的。默认值:PYNATIVE_MODE。
|
||||
|
||||
某些配置适用于特定的设备,有关详细信息,请参见下表:
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue