未验证 提交 6b95e674 编写于 作者: Z zhiboniu 提交者: GitHub

public api:add bn\ln\in; add static.xpu_place (#33897)

上级 dd33d28d
...@@ -489,6 +489,7 @@ def xpu_places(device_ids=None): ...@@ -489,6 +489,7 @@ def xpu_places(device_ids=None):
list of paddle.XPUPlace: Created XPU place list. list of paddle.XPUPlace: Created XPU place list.
Examples: Examples:
.. code-block:: python .. code-block:: python
# required: xpu
import paddle import paddle
import paddle.static as static import paddle.static as static
......
...@@ -195,5 +195,8 @@ __all__ = [ #noqa ...@@ -195,5 +195,8 @@ __all__ = [ #noqa
'gather_tree', 'gather_tree',
'one_hot', 'one_hot',
'normalize', 'normalize',
'temporal_shift' 'temporal_shift',
'batch_norm',
'layer_norm',
'instance_norm'
] ]
...@@ -96,6 +96,7 @@ __all__ = [ #noqa ...@@ -96,6 +96,7 @@ __all__ = [ #noqa
'set_program_state', 'set_program_state',
'cpu_places', 'cpu_places',
'cuda_places', 'cuda_places',
'xpu_places',
'Variable', 'Variable',
'create_global_var', 'create_global_var',
'accuracy', 'accuracy',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册