From ab9206be6556372bb301e39e7bdceb686ca4b460 Mon Sep 17 00:00:00 2001 From: zhangting2020 <709968123@qq.com> Date: Wed, 18 Mar 2020 05:45:43 +0000 Subject: [PATCH] remove init_on_cpu and force_init_on_cpu APIs, test=develop --- doc/fluid/api/initializer.rst | 2 -- .../api/initializer/force_init_on_cpu.rst | 11 ------- doc/fluid/api/initializer/init_on_cpu.rst | 11 ------- doc/fluid/api_cn/initializer_cn.rst | 2 -- .../initializer_cn/force_init_on_cpu_cn.rst | 31 ------------------- .../api_cn/initializer_cn/init_on_cpu_cn.rst | 21 ------------- 6 files changed, 78 deletions(-) delete mode 100644 doc/fluid/api/initializer/force_init_on_cpu.rst delete mode 100644 doc/fluid/api/initializer/init_on_cpu.rst delete mode 100644 doc/fluid/api_cn/initializer_cn/force_init_on_cpu_cn.rst delete mode 100644 doc/fluid/api_cn/initializer_cn/init_on_cpu_cn.rst diff --git a/doc/fluid/api/initializer.rst b/doc/fluid/api/initializer.rst index 0068f3f60..085cee5a6 100644 --- a/doc/fluid/api/initializer.rst +++ b/doc/fluid/api/initializer.rst @@ -9,8 +9,6 @@ fluid.initializer initializer/BilinearInitializer.rst initializer/Constant.rst initializer/ConstantInitializer.rst - initializer/force_init_on_cpu.rst - initializer/init_on_cpu.rst initializer/MSRA.rst initializer/MSRAInitializer.rst initializer/Normal.rst diff --git a/doc/fluid/api/initializer/force_init_on_cpu.rst b/doc/fluid/api/initializer/force_init_on_cpu.rst deleted file mode 100644 index e9724b848..000000000 --- a/doc/fluid/api/initializer/force_init_on_cpu.rst +++ /dev/null @@ -1,11 +0,0 @@ -.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` - !DO NOT EDIT THIS FILE MANUALLY! - -.. _api_fluid_initializer_force_init_on_cpu: - -force_init_on_cpu ------------------ - -.. autofunction:: paddle.fluid.initializer.force_init_on_cpu - :noindex: - diff --git a/doc/fluid/api/initializer/init_on_cpu.rst b/doc/fluid/api/initializer/init_on_cpu.rst deleted file mode 100644 index c7ae66820..000000000 --- a/doc/fluid/api/initializer/init_on_cpu.rst +++ /dev/null @@ -1,11 +0,0 @@ -.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}` - !DO NOT EDIT THIS FILE MANUALLY! - -.. _api_fluid_initializer_init_on_cpu: - -init_on_cpu ------------ - -.. autofunction:: paddle.fluid.initializer.init_on_cpu - :noindex: - diff --git a/doc/fluid/api_cn/initializer_cn.rst b/doc/fluid/api_cn/initializer_cn.rst index 0fc51ed45..6db568395 100644 --- a/doc/fluid/api_cn/initializer_cn.rst +++ b/doc/fluid/api_cn/initializer_cn.rst @@ -12,8 +12,6 @@ fluid.initializer initializer_cn/BilinearInitializer_cn.rst initializer_cn/Constant_cn.rst initializer_cn/ConstantInitializer_cn.rst - initializer_cn/force_init_on_cpu_cn.rst - initializer_cn/init_on_cpu_cn.rst initializer_cn/MSRA_cn.rst initializer_cn/MSRAInitializer_cn.rst initializer_cn/Normal_cn.rst diff --git a/doc/fluid/api_cn/initializer_cn/force_init_on_cpu_cn.rst b/doc/fluid/api_cn/initializer_cn/force_init_on_cpu_cn.rst deleted file mode 100644 index 7957a26a5..000000000 --- a/doc/fluid/api_cn/initializer_cn/force_init_on_cpu_cn.rst +++ /dev/null @@ -1,31 +0,0 @@ -.. _cn_api_fluid_initializer_force_init_on_cpu: - -force_init_on_cpu -------------------------------- - -.. py:function:: paddle.fluid.initializer.force_init_on_cpu() - -该接口获得一个是否强制在CPU上初始化变量的布尔型标志位。 - -返回:状态,是否应强制在CPU上强制进行变量初始化 - -返回类型:bool - -**代码示例**: - -.. code-block:: python - - import paddle.fluid as fluid - if fluid.initializer.force_init_on_cpu(): - step = fluid.layers.create_global_var(shape=[2,3], value=1.0, dtype='float32') - - - - - - - - - - - diff --git a/doc/fluid/api_cn/initializer_cn/init_on_cpu_cn.rst b/doc/fluid/api_cn/initializer_cn/init_on_cpu_cn.rst deleted file mode 100644 index 00e7b1d86..000000000 --- a/doc/fluid/api_cn/initializer_cn/init_on_cpu_cn.rst +++ /dev/null @@ -1,21 +0,0 @@ -.. _cn_api_fluid_initializer_init_on_cpu: - -init_on_cpu -------------------------------- - -.. py:function:: paddle.fluid.initializer.init_on_cpu() - -该接口设置强制变量在 cpu 上初始化。 - -返回:无 - -**代码示例** - -.. code-block:: python - - import paddle.fluid as fluid - with fluid.initializer.init_on_cpu(): - step = fluid.layers.create_global_var(shape=[2,3], value=1.0, dtype='float32') - - - -- GitLab