Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/fluid/api_cn/index_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ API Reference
param_attr_cn.rst
profiler_cn.rst
regularizer_cn.rst
transpliter_cn.rst
transpiler_cn.rst
22 changes: 11 additions & 11 deletions doc/fluid/api_cn/profiler_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ CUDA分析器。通过CUDA运行时应用程序编程接口对CUDA程序进行
参数:
- **output_file** (string) – 输出文件名称, 输出结果将会写入该文件
- **output_mode** (string) – 输出格式是有 key-value 键值对 和 逗号的分割的格式。格式应该是' kvp '或' csv '
- **config** (list of string) – 参考Compute Command Line Profiler User Guide 查阅 profiler options 和 counter相关信息
- **config** (list of string) – 参考"Compute Command Line Profiler User Guide" 查阅 profiler options 和 counter相关信息

抛出异常:
- ``ValueError`` - 如果 ``output_mode`` 不在 [kvp’, ‘csv] 中
- ``ValueError`` - 如果 ``output_mode`` 不在 ['kvp', 'csv'] 中


**代码示例**
Expand Down Expand Up @@ -70,12 +70,12 @@ profile interface 。与cuda_profiler不同,此profiler可用于分析CPU和GP
如果 state== ' All ',在profile_path 中写入文件 profile proto 。该文件记录执行期间的时间顺序信息。然后用户可以看到这个文件的时间轴,请参考 `https://github.com/PaddlePaddle/Paddle/blob/develop/doc/fluid/howto/optimization/timeline.md <https://github.com/PaddlePaddle/Paddle/blob/develop/doc/fluid/howto/optimization/timeline.md>`_

参数:
- **state** (string) – profiling state, 取值为 CPUGPU, profiler 使用 CPU timer 或GPU timer 进行 profiling. 虽然用户可能在开始时指定了执行位置(CPUPlace/CUDAPlace),但是为了灵活性,profiler不会使用这个位置。
- **sorted_key** (string) – 如果为None,prfile的结果将按照事件的第一次结束时间顺序打印。否则,结果将按标志排序。标志取值为call”、“total”、“max”、“min” “ave之一,根据调用着的数量进行排序。total表示按总执行时间排序,max 表示按最大执行时间排序。min 表示按最小执行时间排序。ave表示按平均执行时间排序。
- **profile_path** (string) – 如果 state == All, 结果将写入文件 profile proto.
- **state** (string) – profiling state, 取值为 'CPU''GPU', profiler 使用 CPU timer 或GPU timer 进行 profiling. 虽然用户可能在开始时指定了执行位置(CPUPlace/CUDAPlace),但是为了灵活性,profiler不会使用这个位置。
- **sorted_key** (string) – 如果为None,prfile的结果将按照事件的第一次结束时间顺序打印。否则,结果将按标志排序。标志取值为"call"、"total"、"max"、"min" "ave"之一,根据调用着的数量进行排序。total表示按总执行时间排序,max 表示按最大执行时间排序。min 表示按最小执行时间排序。ave表示按平均执行时间排序。
- **profile_path** (string) – 如果 state == 'All', 结果将写入文件 profile proto.

抛出异常:
- ``ValueError`` – 如果state 取值不在 [CPU’, ‘GPU’, ‘All]中. 如果 sorted_key 取值不在 [calls’, ‘total’, ‘max’, ‘min’, ‘ave]
- ``ValueError`` – 如果state 取值不在 ['CPU', 'GPU', 'All']中. 如果 sorted_key 取值不在 ['calls', 'total', 'max', 'min', 'ave']

**代码示例**

Expand Down Expand Up @@ -139,10 +139,10 @@ start_profiler
如果 state== ' All ',在profile_path 中写入文件 profile proto 。该文件记录执行期间的时间顺序信息。然后用户可以看到这个文件的时间轴,请参考 `https://github.com/PaddlePaddle/Paddle/blob/develop/doc/fluid/howto/optimization/timeline.md <https://github.com/PaddlePaddle/Paddle/blob/develop/doc/fluid/howto/optimization/timeline.md>`_

参数:
- **state** (string) – profiling state, 取值为 CPUGPUAll’, ‘CPU 代表只分析 cpu. GPU 代表只分析 GPU . All 会产生 timeline.
- **state** (string) – profiling state, 取值为 'CPU''GPU''All', 'CPU' 代表只分析 cpu. 'GPU' 代表只分析 GPU . 'All' 会产生 timeline.

抛出异常:
- ``ValueError`` – 如果state 取值不在 [CPU’, ‘GPU’, ‘All]中
- ``ValueError`` – 如果state 取值不在 ['CPU', 'GPU', 'All']中

**代码示例**

Expand Down Expand Up @@ -177,12 +177,12 @@ stop_profiler
不能使用 fluid.profiler.profiler``

参数:
- **sorted_key** (string) – 如果为None,prfile的结果将按照事件的第一次结束时间顺序打印。否则,结果将按标志排序。标志取值为call”、“total”、“max”、“min” “ave之一,根据调用着的数量进行排序。total表示按总执行时间排序,max 表示按最大执行时间排序。min 表示按最小执行时间排序。ave表示按平均执行时间排序。
- **profile_path** (string) - 如果 state == All, 结果将写入文件 profile proto.
- **sorted_key** (string) – 如果为None,prfile的结果将按照事件的第一次结束时间顺序打印。否则,结果将按标志排序。标志取值为"call"、"total"、"max"、"min" "ave"之一,根据调用着的数量进行排序。total表示按总执行时间排序,max 表示按最大执行时间排序。min 表示按最小执行时间排序。ave表示按平均执行时间排序。
- **profile_path** (string) - 如果 state == 'All', 结果将写入文件 profile proto.


抛出异常:
- ``ValueError`` – 如果state 取值不在 [CPU’, ‘GPU’, ‘All]中
- ``ValueError`` – 如果state 取值不在 ['CPU', 'GPU', 'All']中

**代码示例**

Expand Down
244 changes: 0 additions & 244 deletions doc/fluid/api_cn/transpliter_cn.rst

This file was deleted.