Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
ee97604d
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ee97604d
编写于
1月 31, 2018
作者:
Y
Yang Yu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add documentation generate script
上级
c091dbdf
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
802 addition
and
349 deletion
+802
-349
doc/api/v2/fluid/data_feeder.rst
doc/api/v2/fluid/data_feeder.rst
+9
-4
doc/api/v2/fluid/evaluator.rst
doc/api/v2/fluid/evaluator.rst
+20
-8
doc/api/v2/fluid/executor.rst
doc/api/v2/fluid/executor.rst
+28
-5
doc/api/v2/fluid/gen_doc.py
doc/api/v2/fluid/gen_doc.py
+109
-0
doc/api/v2/fluid/gen_doc.sh
doc/api/v2/fluid/gen_doc.sh
+7
-0
doc/api/v2/fluid/initializer.rst
doc/api/v2/fluid/initializer.rst
+20
-35
doc/api/v2/fluid/io.rst
doc/api/v2/fluid/io.rst
+56
-5
doc/api/v2/fluid/layers.rst
doc/api/v2/fluid/layers.rst
+453
-200
doc/api/v2/fluid/nets.rst
doc/api/v2/fluid/nets.rst
+10
-12
doc/api/v2/fluid/optimizer.rst
doc/api/v2/fluid/optimizer.rst
+30
-35
doc/api/v2/fluid/param_attr.rst
doc/api/v2/fluid/param_attr.rst
+16
-6
doc/api/v2/fluid/profiler.rst
doc/api/v2/fluid/profiler.rst
+20
-5
doc/api/v2/fluid/regularizer.rst
doc/api/v2/fluid/regularizer.rst
+17
-15
python/paddle/v2/fluid/__init__.py
python/paddle/v2/fluid/__init__.py
+5
-17
python/paddle/v2/fluid/profiler.py
python/paddle/v2/fluid/profiler.py
+2
-2
未找到文件。
doc/api/v2/fluid/data_feeder.rst
浏览文件 @
ee97604d
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
===========
===========
DataF
eeder
data_f
eeder
===========
===========
DataFeeder
DataFeeder
-----------
----------
.. automodule:: paddle.v2.fluid.data_feeder
:members: DataFeeder
.. autoclass:: paddle.v2.fluid.data_feeder.DataFeeder
:members:
:noindex:
:noindex:
doc/api/v2/fluid/evaluator.rst
浏览文件 @
ee97604d
===========
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
Evaluator
!DO NOT EDIT THIS FILE MANUALLY!
===========
=========
Evaluator
evaluator
-----------
=========
.. automodule:: paddle.v2.fluid.evaluator
:members: Evaluator
Accuracy
--------
.. autoclass:: paddle.v2.fluid.evaluator.Accuracy
:members:
:noindex:
:noindex:
ChunkEvaluator
--------------
.. autoclass:: paddle.v2.fluid.evaluator.ChunkEvaluator
:members:
:noindex:
doc/api/v2/fluid/executor.rst
浏览文件 @
ee97604d
===========
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
Executor
!DO NOT EDIT THIS FILE MANUALLY!
===========
========
executor
========
Executor
Executor
--------
.. autoclass:: paddle.v2.fluid.executor.Executor
:members:
:noindex:
global_scope
------------
.. autofunction:: paddle.v2.fluid.executor.global_scope
:noindex:
scope_guard
-----------
-----------
.. automodule:: paddle.v2.fluid.executor
:members: Executor
.. autofunction:: paddle.v2.fluid.executor.scope_guard
:noindex:
switch_scope
------------
.. autofunction:: paddle.v2.fluid.executor.switch_scope
:noindex:
:noindex:
doc/api/v2/fluid/gen_doc.py
0 → 100644
浏览文件 @
ee97604d
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
print_function
import
argparse
import
sys
import
types
import
paddle.v2.fluid
as
fluid
def
parse_arg
():
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
'--submodules'
,
nargs
=
"*"
)
parser
.
add_argument
(
'module'
,
type
=
str
,
help
=
'Generate the documentation of which module'
)
return
parser
.
parse_args
()
class
DocGenerator
(
object
):
def
__init__
(
self
,
module_name
,
stream
=
sys
.
stdout
):
self
.
stream
=
stream
self
.
module_name
=
module_name
if
not
hasattr
(
fluid
,
module_name
):
raise
ValueError
(
"Cannot find fluid.{0}"
.
format
(
module_name
))
else
:
self
.
module
=
getattr
(
fluid
,
module_name
)
self
.
stream
.
write
(
'''.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
'''
)
self
.
_print_header_
(
module_name
,
dot
=
'='
,
is_title
=
True
)
def
print_submodule
(
self
,
submodule_name
):
submodule
=
getattr
(
self
.
module
,
submodule_name
)
if
submodule
is
None
:
raise
ValueError
(
"Cannot find submodule {0}"
.
format
(
submodule_name
))
self
.
print_section
(
submodule_name
)
for
item
in
submodule
.
__all__
:
self
.
print_item
(
item
)
def
print_current_module
(
self
):
for
item
in
self
.
module
.
__all__
:
self
.
print_item
(
item
)
def
print_section
(
self
,
name
):
self
.
_print_header_
(
name
,
dot
=
'='
,
is_title
=
False
)
def
print_item
(
self
,
name
):
item
=
getattr
(
self
.
module
,
name
)
if
isinstance
(
item
,
types
.
TypeType
):
self
.
print_class
(
name
)
elif
isinstance
(
item
,
types
.
FunctionType
):
self
.
print_method
(
name
)
else
:
raise
RuntimeError
(
"Unsupported item {0}"
.
format
(
name
))
def
print_class
(
self
,
name
):
self
.
_print_header_
(
name
,
dot
=
'-'
,
is_title
=
False
)
self
.
stream
.
write
(
'''.. autoclass:: paddle.v2.fluid.{0}.{1}
:members:
:noindex:
'''
.
format
(
self
.
module_name
,
name
))
def
print_method
(
self
,
name
):
self
.
_print_header_
(
name
,
dot
=
'-'
,
is_title
=
False
)
self
.
stream
.
write
(
'''.. autofunction:: paddle.v2.fluid.{0}.{1}
:noindex:
'''
.
format
(
self
.
module_name
,
name
))
def
_print_header_
(
self
,
name
,
dot
,
is_title
):
dot_line
=
dot
*
len
(
name
)
if
is_title
:
self
.
stream
.
write
(
dot_line
)
self
.
stream
.
write
(
'
\n
'
)
self
.
stream
.
write
(
name
)
self
.
stream
.
write
(
'
\n
'
)
self
.
stream
.
write
(
dot_line
)
self
.
stream
.
write
(
'
\n
'
)
self
.
stream
.
write
(
'
\n
'
)
def
main
():
args
=
parse_arg
()
gen
=
DocGenerator
(
args
.
module
)
if
args
.
submodules
is
None
:
gen
.
print_current_module
()
else
:
for
submodule_name
in
args
.
submodules
:
gen
.
print_submodule
(
submodule_name
)
if
__name__
==
'__main__'
:
main
()
doc/api/v2/fluid/gen_doc.sh
0 → 100755
浏览文件 @
ee97604d
#!/bin/bash
python gen_doc.py layers
--submodules
control_flow device io nn ops tensor
>
layers.rst
for
module
in
io data_feeder evaluator executor initializer io nets optimizer param_attr profiler regularizer
do
python gen_doc.py
${
module
}
>
${
module
}
.rst
done
doc/api/v2/fluid/initializer.rst
浏览文件 @
ee97604d
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
===========
===========
I
nitializer
i
nitializer
===========
===========
Constant
--------
.. autoclass:: paddle.v2.fluid.initializer.Constant
Initializer
:members:
-----------
.. automodule:: paddle.v2.fluid.initializer
:members: Initializer
:noindex:
ConstantInitializer
-------------------
.. automodule:: paddle.v2.fluid.initializer
:members: ConstantInitializer
:noindex:
:noindex:
Uniform
-------
.. autoclass:: paddle.v2.fluid.initializer.Uniform
UniformInitializer
:members:
------------------
.. automodule:: paddle.v2.fluid.initializer
:members: UniformInitializer
:noindex:
NormalInitializer
-----------------
.. automodule:: paddle.v2.fluid.initializer
:members: NormalInitializer
:noindex:
:noindex:
Normal
------
XavierInitializer
.. autoclass:: paddle.v2.fluid.initializer.Normal
-----------------
:members:
.. automodule:: paddle.v2.fluid.initializer
:members: XavierInitializer
:noindex:
:noindex:
Xavier
------
MSRAInitializer
.. autoclass:: paddle.v2.fluid.initializer.Xavier
---------------
:members:
.. automodule:: paddle.v2.fluid.initializer
:members: MSRAInitializer
:noindex:
:noindex:
doc/api/v2/fluid/io.rst
浏览文件 @
ee97604d
===========
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
IO
!DO NOT EDIT THIS FILE MANUALLY!
===========
==
io
==
save_vars
---------
is_parameter
.. autofunction:: paddle.v2.fluid.io.save_vars
:noindex:
save_params
-----------
-----------
.. autofunction:: paddle.v2.fluid.io.is_parameter
.. autofunction:: paddle.v2.fluid.io.save_params
:noindex:
save_persistables
-----------------
.. autofunction:: paddle.v2.fluid.io.save_persistables
:noindex:
load_vars
---------
.. autofunction:: paddle.v2.fluid.io.load_vars
:noindex:
load_params
-----------
.. autofunction:: paddle.v2.fluid.io.load_params
:noindex:
:noindex:
load_persistables
-----------------
.. autofunction:: paddle.v2.fluid.io.load_persistables
:noindex:
save_inference_model
--------------------
.. autofunction:: paddle.v2.fluid.io.save_inference_model
:noindex:
load_inference_model
--------------------
.. autofunction:: paddle.v2.fluid.io.load_inference_model
:noindex:
get_inference_program
---------------------
.. autofunction:: paddle.v2.fluid.io.get_inference_program
:noindex:
doc/api/v2/fluid/layers.rst
浏览文件 @
ee97604d
==========
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
Layers
!DO NOT EDIT THIS FILE MANUALLY!
==========
======
layers
======
fc
control_flow
---
============
.. autofunction:: paddle.v2.fluid.layers.fc
split_lod_tensor
----------------
.. autofunction:: paddle.v2.fluid.layers.split_lod_tensor
:noindex:
:noindex:
embedding
merge_lod_tensor
---------
----------------
.. autofunction:: paddle.v2.fluid.layers.embedding
.. autofunction:: paddle.v2.fluid.layers.merge_lod_tensor
:noindex:
:noindex:
dynamic_lstm
BlockGuard
------------
----------
.. autofunction:: paddle.v2.fluid.layers.dynamic_lstm
.. autoclass:: paddle.v2.fluid.layers.BlockGuard
:members:
:noindex:
:noindex:
dynamic_lstmp
BlockGuardWithCompletion
-------------
------------------------
.. autofunction:: paddle.v2.fluid.layers.dynamic_lstmp
.. autoclass:: paddle.v2.fluid.layers.BlockGuardWithCompletion
:members:
:noindex:
:noindex:
dynamic_gru
StaticRNNMemoryLink
-----------
-------------------
.. autofunction:: paddle.v2.fluid.layers.dynamic_gru
.. autoclass:: paddle.v2.fluid.layers.StaticRNNMemoryLink
:members:
:noindex:
:noindex:
data
WhileGuard
----
----------
.. autofunction:: paddle.v2.fluid.layers.data
.. autoclass:: paddle.v2.fluid.layers.WhileGuard
:members:
:noindex:
:noindex:
mean
While
----
-----
.. autofunction:: paddle.v2.fluid.layers.mean
.. autoclass:: paddle.v2.fluid.layers.While
:members:
:noindex:
:noindex:
mul
lod_rank_table
---
--------------
.. autofunction:: paddle.v2.fluid.layers.mul
.. autofunction:: paddle.v2.fluid.layers.lod_rank_table
:noindex:
:noindex:
elementwise_add
max_sequence_len
---------------
----------------
.. autofunction:: paddle.v2.fluid.layers.elementwise_add
.. autofunction:: paddle.v2.fluid.layers.max_sequence_len
:noindex:
:noindex:
elementwise_sub
topk
---------------
----
.. autofunction:: paddle.v2.fluid.layers.elementwise_sub
.. autofunction:: paddle.v2.fluid.layers.topk
:noindex:
:noindex:
elementwise_mul
lod_tensor_to_array
---------------
-------------------
.. autofunction:: paddle.v2.fluid.layers.elementwise_mul
.. autofunction:: paddle.v2.fluid.layers.lod_tensor_to_array
:noindex:
:noindex:
elementwise_div
array_to_lod_tensor
---------------
-------------------
.. autofunction:: paddle.v2.fluid.layers.elementwise_div
.. autofunction:: paddle.v2.fluid.layers.array_to_lod_tensor
:noindex:
:noindex:
increment
---------
dropout
.. autofunction:: paddle.v2.fluid.layers.increment
-------
.. autofunction:: paddle.v2.fluid.layers.dropout
:noindex:
:noindex:
array_write
-----------
reshape
.. autofunction:: paddle.v2.fluid.layers.array_write
--------
.. autofunction:: paddle.v2.fluid.layers.reshape
:noindex:
:noindex:
create_array
------------
sigmoid
.. autofunction:: paddle.v2.fluid.layers.create_array
:noindex:
less_than
---------
---------
.. autofunction:: paddle.v2.fluid.layers.sigmoid
.. autofunction:: paddle.v2.fluid.layers.less_than
:noindex:
:noindex:
array_read
----------
scale
.. autofunction:: paddle.v2.fluid.layers.array_read
---------
:noindex:
.. autofunction:: paddle.v2.fluid.layers.scale
shrink_memory
-------------
.. autofunction:: paddle.v2.fluid.layers.shrink_memory
:noindex:
:noindex:
array_length
------------
transpose
.. autofunction:: paddle.v2.fluid.layers.array_length
:noindex:
IfElse
------
.. autoclass:: paddle.v2.fluid.layers.IfElse
:members:
:noindex:
DynamicRNN
----------
.. autoclass:: paddle.v2.fluid.layers.DynamicRNN
:members:
:noindex:
ConditionalBlock
----------------
.. autoclass:: paddle.v2.fluid.layers.ConditionalBlock
:members:
:noindex:
StaticRNN
---------
---------
.. autofunction:: paddle.v2.fluid.layers.transpose
.. autoclass:: paddle.v2.fluid.layers.StaticRNN
:members:
:noindex:
:noindex:
reorder_lod_tensor_by_rank
--------------------------
sigmoid_cross_entropy_with_logits
.. autofunction:: paddle.v2.fluid.layers.reorder_lod_tensor_by_rank
---------------------------------
.. autofunction:: paddle.v2.fluid.layers.esigmoid_cross_entropy_with_logits
:noindex:
:noindex:
ParallelDo
----------
cast
.. autoclass:: paddle.v2.fluid.layers.ParallelDo
:members:
:noindex:
Print
-----
.. autofunction:: paddle.v2.fluid.layers.Print
:noindex:
device
======
get_places
----------
.. autofunction:: paddle.v2.fluid.layers.get_places
:noindex:
io
==
data
----
----
.. autofunction:: paddle.v2.fluid.layers.cast
.. autofunction:: paddle.v2.fluid.layers.data
:noindex:
:noindex:
BlockGuardServ
--------------
concat
.. autoclass:: paddle.v2.fluid.layers.BlockGuardServ
-------
:members:
.. autofunction:: paddle.v2.fluid.layers.concat
:noindex:
:noindex:
ListenAndServ
-------------
sums
.. autoclass:: paddle.v2.fluid.layers.ListenAndServ
:members:
:noindex:
Send
----
----
.. autofunction:: paddle.v2.fluid.layers.sums
.. autofunction:: paddle.v2.fluid.layers.Send
:noindex:
:noindex:
nn
==
linear_chain_crf
fc
----------------
--
.. autofunction:: paddle.v2.fluid.layers.linear_chain_crf
.. autofunction:: paddle.v2.fluid.layers.fc
:noindex:
:noindex:
embedding
---------
assign
-------
.. autofunction:: paddle.v2.fluid.layers.embedding
.. autofunction:: paddle.v2.fluid.layers.embedding
:noindex:
:noindex:
dynamic_lstm
------------
split_lod_tensor
.. autofunction:: paddle.v2.fluid.layers.dynamic_lstm
----------------
.. autofunction:: paddle.v2.fluid.layers.split_lod_tensor
:noindex:
:noindex:
dynamic_lstmp
-------------
merge_lod_tensor
.. autofunction:: paddle.v2.fluid.layers.dynamic_lstmp
:noindex:
dynamic_gru
-----------
.. autofunction:: paddle.v2.fluid.layers.dynamic_gru
:noindex:
gru_unit
--------
.. autofunction:: paddle.v2.fluid.layers.gru_unit
:noindex:
linear_chain_crf
----------------
----------------
.. autofunction:: paddle.v2.fluid.layers.merge_lod_tensor
.. autofunction:: paddle.v2.fluid.layers.linear_chain_crf
:noindex:
crf_decoding
------------
.. autofunction:: paddle.v2.fluid.layers.crf_decoding
:noindex:
:noindex:
cos_sim
cos_sim
--------
-------
.. autofunction:: paddle.v2.fluid.layers.cos_sim
.. autofunction:: paddle.v2.fluid.layers.cos_sim
:noindex:
:noindex:
cross_entropy
cross_entropy
-------------
-------------
.. autofunction:: paddle.v2.fluid.layers.cross_entropy
.. autofunction:: paddle.v2.fluid.layers.cross_entropy
:noindex:
:noindex:
square_error_cost
square_error_cost
-----------------
-----------------
.. autofunction:: paddle.v2.fluid.layers.square_error_cost
.. autofunction:: paddle.v2.fluid.layers.square_error_cost
:noindex:
:noindex:
accuracy
accuracy
---------
--------
.. autofunction:: paddle.v2.fluid.layers.accuracy
.. autofunction:: paddle.v2.fluid.layers.accuracy
:noindex:
:noindex:
chunk_eval
----------
.. autofunction:: paddle.v2.fluid.layers.chunk_eval
:noindex:
sequence_conv
sequence_conv
-------------
-------------
.. autofunction:: paddle.v2.fluid.layers.sequence_conv
.. autofunction:: paddle.v2.fluid.layers.sequence_conv
:noindex:
:noindex:
conv2d
conv2d
------
------
.. autofunction:: paddle.v2.fluid.layers.conv2d
.. autofunction:: paddle.v2.fluid.layers.conv2d
:noindex:
:noindex:
sequence_pool
sequence_pool
-------------
-------------
.. autofunction:: paddle.v2.fluid.layers.sequence_pool
.. autofunction:: paddle.v2.fluid.layers.sequence_pool
:noindex:
:noindex:
pool2d
------
sequence_first_step
.. autofunction:: paddle.v2.fluid.layers.pool2d
-------------------
.. autofunction:: paddle.v2.fluid.layers.sequence_first_step
:noindex:
:noindex:
batch_norm
----------
.. autofunction:: paddle.v2.fluid.layers.batch_norm
:noindex:
sequence_last_step
beam_search_decode
------------------
------------------
.. autofunction:: paddle.v2.fluid.layers.sequence_last_step
.. autofunction:: paddle.v2.fluid.layers.beam_search_decode
:noindex:
:noindex:
conv2d_transpose
----------------
pool2d
.. autofunction:: paddle.v2.fluid.layers.conv2d_transpose
------
.. autofunction:: paddle.v2.fluid.layers.pool2d
:noindex:
:noindex:
sequence_expand
---------------
batch_norm
.. autofunction:: paddle.v2.fluid.layers.sequence_expand
:noindex:
lstm_unit
---------
.. autofunction:: paddle.v2.fluid.layers.lstm_unit
:noindex:
reduce_sum
----------
----------
.. autofunction:: paddle.v2.fluid.layers.batch_norm
.. autofunction:: paddle.v2.fluid.layers.reduce_sum
:noindex:
reduce_mean
-----------
.. autofunction:: paddle.v2.fluid.layers.reduce_mean
:noindex:
:noindex:
reduce_max
----------
.. autofunction:: paddle.v2.fluid.layers.reduce_max
:noindex:
beam_search_decode
reduce_min
----------
.. autofunction:: paddle.v2.fluid.layers.reduce_min
:noindex:
sequence_first_step
-------------------
.. autofunction:: paddle.v2.fluid.layers.sequence_first_step
:noindex:
sequence_last_step
------------------
------------------
.. autofunction:: paddle.v2.fluid.layers.beam_search_decode
.. autofunction:: paddle.v2.fluid.layers.sequence_last_step
:noindex:
dropout
-------
.. autofunction:: paddle.v2.fluid.layers.dropout
:noindex:
:noindex:
split
-----
lod_rank_table
.. autofunction:: paddle.v2.fluid.layers.split
--------------
.. autofunction:: paddle.v2.fluid.layers.lod_rank_table
:noindex:
:noindex:
ctc_greedy_decoder
------------------
max_sequence_len
.. autofunction:: paddle.v2.fluid.layers.ctc_greedy_decoder
----------------
.. autofunction:: paddle.v2.fluid.layers.max_sequence_len
:noindex:
:noindex:
edit_distance
-------------
topk
.. autofunction:: paddle.v2.fluid.layers.edit_distance
-----
.. autofunction:: paddle.v2.fluid.layers.topk
:noindex:
:noindex:
l2_normalize
------------
lod_tensor_to_array
.. autofunction:: paddle.v2.fluid.layers.l2_normalize
-------------------
.. autofunction:: paddle.v2.fluid.layers.lod_tensor_to_array
:noindex:
:noindex:
matmul
------
.. autofunction:: paddle.v2.fluid.layers.matmul
array_to_lod_tensor
-------------------
.. autofunction:: paddle.v2.fluid.layers.array_to_lod_tensor
:noindex:
:noindex:
warpctc
-------
.. autofunction:: paddle.v2.fluid.layers.warpctc
:noindex:
sequence_reshape
----------------
fill_constant
.. autofunction:: paddle.v2.fluid.layers.sequence_reshape
-------------
.. autofunction:: paddle.v2.fluid.layers.fill_constant
:noindex:
:noindex:
transpose
---------
.. autofunction:: paddle.v2.fluid.layers.transpose
:noindex:
fill_constant_batch_size_like
im2sequence
-----------------------------
-----------
.. autofunction:: paddle.v2.fluid.layers.fill_constant_batch_size_like
.. autofunction:: paddle.v2.fluid.layers.im2sequence
:noindex:
:noindex:
nce
---
ones
.. autofunction:: paddle.v2.fluid.layers.nce
----
.. autofunction:: paddle.v2.fluid.layers.ones
:noindex:
:noindex:
beam_search
-----------
zeros
.. autofunction:: paddle.v2.fluid.layers.beam_search
-----
.. autofunction:: paddle.v2.fluid.layers.zeros
:noindex:
:noindex:
row_conv
--------
increment
.. autofunction:: paddle.v2.fluid.layers.row_conv
---------
.. autofunction:: paddle.v2.fluid.layers.increment
:noindex:
:noindex:
multiplex
---------
array_write
.. autofunction:: paddle.v2.fluid.layers.multiplex
-----------
.. autofunction:: paddle.v2.fluid.layers.array_write
:noindex:
:noindex:
ops
===
mean
----
create_array
.. autofunction:: paddle.v2.fluid.layers.mean
------------
.. autofunction:: paddle.v2.fluid.layers.create_array
:noindex:
:noindex:
mul
---
less_than
.. autofunction:: paddle.v2.fluid.layers.mul
---------
.. autofunction:: paddle.v2.fluid.layers.less_than
:noindex:
:noindex:
reshape
-------
array_read
.. autofunction:: paddle.v2.fluid.layers.reshape
----------
.. autofunction:: paddle.v2.fluid.layers.array_read
:noindex:
:noindex:
scale
-----
shrink_memory
.. autofunction:: paddle.v2.fluid.layers.scale
--------------
.. autofunction:: paddle.v2.fluid.layers.shrink_memory
:noindex:
:noindex:
sigmoid_cross_entropy_with_logits
---------------------------------
array_length
.. autofunction:: paddle.v2.fluid.layers.sigmoid_cross_entropy_with_logits
-------------
.. autofunction:: paddle.v2.fluid.layers.array_length
:noindex:
:noindex:
elementwise_add
---------------
conv2d_transpose
.. autofunction:: paddle.v2.fluid.layers.elementwise_add
----------------
.. autofunction:: paddle.v2.fluid.layers.conv2d_transpose
:noindex:
:noindex:
elementwise_div
sequence_expand
---------------
---------------
.. autofunction:: paddle.v2.fluid.layers.sequence_expand
.. autofunction:: paddle.v2.fluid.layers.elementwise_div
:noindex:
:noindex:
elementwise_sub
---------------
gru_unit
.. autofunction:: paddle.v2.fluid.layers.elementwise_sub
--------
.. autofunction:: paddle.v2.fluid.layers.gru_unit
:noindex:
:noindex:
elementwise_mul
---------------
lstm_unit
.. autofunction:: paddle.v2.fluid.layers.elementwise_mul
---------
.. autofunction:: paddle.v2.fluid.layers.lstm_unit
:noindex:
:noindex:
elementwise_max
---------------
sequence_softmax
.. autofunction:: paddle.v2.fluid.layers.elementwise_max
----------------
.. autofunction:: paddle.v2.fluid.layers.sequence_softmax
:noindex:
:noindex:
elementwise_min
---------------
reduce_sum
.. autofunction:: paddle.v2.fluid.layers.elementwise_min
----------
.. autofunction:: paddle.v2.fluid.layers.reduce_sum
:noindex:
:noindex:
elementwise_pow
---------------
reduce_mean
.. autofunction:: paddle.v2.fluid.layers.elementwise_pow
-----------
.. autofunction:: paddle.v2.fluid.layers.reduce_mean
:noindex:
:noindex:
clip
----
reduce_max
.. autofunction:: paddle.v2.fluid.layers.clip
----------
.. autofunction:: paddle.v2.fluid.layers.reduce_max
:noindex:
:noindex:
clip_by_norm
------------
reduce_min
.. autofunction:: paddle.v2.fluid.layers.clip_by_norm
----------
.. autofunction:: paddle.v2.fluid.layers.reduce_min
:noindex:
:noindex:
sequence_softmax
----------------
split
.. autofunction:: paddle.v2.fluid.layers.sequence_softmax
-----
.. autofunction:: paddle.v2.fluid.layers.split
:noindex:
:noindex:
sigmoid
-------
matmul
.. autofunction:: paddle.v2.fluid.layers.sigmoid
------
.. autofunction:: paddle.v2.fluid.layers.matmul
:noindex:
:noindex:
logsigmoid
logsigmoid
----------
----------
.. autofunction:: paddle.v2.fluid.layers.logsigmoid
.. autofunction:: paddle.v2.fluid.layers.logsigmoid
:noindex:
:noindex:
exp
exp
---
---
.. autofunction:: paddle.v2.fluid.layers.exp
.. autofunction:: paddle.v2.fluid.layers.exp
:noindex:
:noindex:
relu
relu
----
----
.. autofunction:: paddle.v2.fluid.layers.relu
.. autofunction:: paddle.v2.fluid.layers.relu
:noindex:
:noindex:
tanh
tanh
----
----
.. autofunction:: paddle.v2.fluid.layers.tanh
.. autofunction:: paddle.v2.fluid.layers.tanh
:noindex:
:noindex:
tanh_shrink
tanh_shrink
-----------
-----------
.. autofunction:: paddle.v2.fluid.layers.tanh_shrink
.. autofunction:: paddle.v2.fluid.layers.tanh_shrink
:noindex:
:noindex:
softshrink
softshrink
----------
----------
.. autofunction:: paddle.v2.fluid.layers.softshrink
.. autofunction:: paddle.v2.fluid.layers.softshrink
:noindex:
:noindex:
sqrt
sqrt
----
----
.. autofunction:: paddle.v2.fluid.layers.sqrt
.. autofunction:: paddle.v2.fluid.layers.sqrt
:noindex:
:noindex:
abs
abs
----
---
.. autofunction:: paddle.v2.fluid.layers.abs
.. autofunction:: paddle.v2.fluid.layers.abs
:noindex:
:noindex:
ceil
ceil
----
----
.. autofunction:: paddle.v2.fluid.layers.ceil
.. autofunction:: paddle.v2.fluid.layers.ceil
:noindex:
:noindex:
floor
floor
-----
-----
.. autofunction:: paddle.v2.fluid.layers.floor
.. autofunction:: paddle.v2.fluid.layers.floor
:noindex:
:noindex:
round
round
-----
-----
.. autofunction:: paddle.v2.fluid.layers.round
.. autofunction:: paddle.v2.fluid.layers.round
:noindex:
:noindex:
reciprocal
reciprocal
----------
----------
.. autofunction:: paddle.v2.fluid.layers.reciprocal
.. autofunction:: paddle.v2.fluid.layers.reciprocal
:noindex:
:noindex:
log
log
---
---
.. autofunction:: paddle.v2.fluid.layers.log
.. autofunction:: paddle.v2.fluid.layers.log
:noindex:
:noindex:
square
square
------
------
.. autofunction:: paddle.v2.fluid.layers.square
.. autofunction:: paddle.v2.fluid.layers.square
:noindex:
:noindex:
softplus
softplus
--------
--------
.. autofunction:: paddle.v2.fluid.layers.softplus
.. autofunction:: paddle.v2.fluid.layers.softplus
:noindex:
:noindex:
softsign
softsign
---------
--------
.. autofunction:: paddle.v2.fluid.layers.softsign
.. autofunction:: paddle.v2.fluid.layers.softsign
:noindex:
:noindex:
brelu
brelu
-----
-----
.. autofunction:: paddle.v2.fluid.layers.brelu
.. autofunction:: paddle.v2.fluid.layers.brelu
:noindex:
:noindex:
leaky_relu
leaky_relu
----------
----------
.. autofunction:: paddle.v2.fluid.layers.leaky_relu
.. autofunction:: paddle.v2.fluid.layers.leaky_relu
:noindex:
:noindex:
soft_relu
soft_relu
---------
---------
.. autofunction:: paddle.v2.fluid.layers.soft_relu
.. autofunction:: paddle.v2.fluid.layers.soft_relu
:noindex:
:noindex:
elu
elu
----
---
.. autofunction:: paddle.v2.fluid.layers.elu
.. autofunction:: paddle.v2.fluid.layers.elu
:noindex:
:noindex:
relu6
relu6
-----
-----
.. autofunction:: paddle.v2.fluid.layers.relu6
.. autofunction:: paddle.v2.fluid.layers.relu6
:noindex:
:noindex:
pow
pow
----
---
.. autofunction:: paddle.v2.fluid.layers.pow
.. autofunction:: paddle.v2.fluid.layers.pow
:noindex:
:noindex:
stanh
-----
.. autofunction:: paddle.v2.fluid.layers.stanh
:noindex:
hard_shrink
hard_shrink
-----------
-----------
.. autofunction:: paddle.v2.fluid.layers.hard_shrink
.. autofunction:: paddle.v2.fluid.layers.hard_shrink
:noindex:
:noindex:
thresholded_relu
thresholded_relu
----------------
----------------
.. autofunction:: paddle.v2.fluid.layers.thresholded_relu
.. autofunction:: paddle.v2.fluid.layers.thresholded_relu
:noindex:
:noindex:
hard_sigmoid
hard_sigmoid
-------------
------------
.. autofunction:: paddle.v2.fluid.layers.hard_sigmoid
.. autofunction:: paddle.v2.fluid.layers.hard_sigmoid
:noindex:
:noindex:
swish
swish
------
-----
.. autofunction:: paddle.v2.fluid.layers.swish
.. autofunction:: paddle.v2.fluid.layers.swish
:noindex:
:noindex:
im2sequence
tensor
======
create_tensor
-------------
.. autofunction:: paddle.v2.fluid.layers.create_tensor
:noindex:
create_parameter
----------------
.. autofunction:: paddle.v2.fluid.layers.create_parameter
:noindex:
create_global_var
-----------------
.. autofunction:: paddle.v2.fluid.layers.create_global_var
:noindex:
cast
----
.. autofunction:: paddle.v2.fluid.layers.cast
:noindex:
concat
------
------
.. autofunction:: paddle.v2.fluid.layers.im2sequence
.. autofunction:: paddle.v2.fluid.layers.concat
:noindex:
:noindex:
edit_distance
sums
---------------
----
.. autofunction:: paddle.v2.fluid.layers.edit_distance_error
.. autofunction:: paddle.v2.fluid.layers.sums
:noindex:
:noindex:
ctc_greedy_decoder
assign
---------------
------
.. autofunction:: paddle.v2.fluid.layers.ctc_greedy_decoder
.. autofunction:: paddle.v2.fluid.layers.assign
:noindex:
:noindex:
l2_normalize
fill_constant_batch_size_like
------------
-----------------------------
.. autofunction:: paddle.v2.fluid.layers.l2_normalize
.. autofunction:: paddle.v2.fluid.layers.fill_constant_batch_size_like
:noindex:
:noindex:
sequence_reshape
fill_constant
----------------
-------------
.. autofunction:: paddle.v2.fluid.layers.sequence_reshape
.. autofunction:: paddle.v2.fluid.layers.fill_constant
:noindex:
:noindex:
row_conv
ones
--------
----
.. autofunction:: paddle.v2.fluid.layers.row_conv
.. autofunction:: paddle.v2.fluid.layers.ones
:noindex:
:noindex:
multiplex
zeros
---------
-----
.. autofunction:: paddle.v2.fluid.layers.multiplex
.. autofunction:: paddle.v2.fluid.layers.zeros
:noindex:
:noindex:
doc/api/v2/fluid/nets.rst
浏览文件 @
ee97604d
===========
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
Nets
!DO NOT EDIT THIS FILE MANUALLY!
===========
====
nets
====
simple_img_conv_pool
simple_img_conv_pool
--------------------
--------------------
.. autofunction:: paddle.v2.fluid.nets.simple_img_conv_pool
:noindex:
.. autofunction:: paddle.v2.fluid.nets.simple_img_conv_pool
img_conv_group
---------------
.. autofunction:: paddle.v2.fluid.nets.img_conv_group
:noindex:
:noindex:
sequence_conv_pool
sequence_conv_pool
------------------
------------------
.. autofunction:: paddle.v2.fluid.nets.sequence_conv_pool
.. autofunction:: paddle.v2.fluid.nets.sequence_conv_pool
:noindex:
:noindex:
glu
glu
---
---
.. autofunction:: paddle.v2.fluid.nets.glu
.. autofunction:: paddle.v2.fluid.nets.glu
:noindex:
:noindex:
scaled_dot_product_attention
scaled_dot_product_attention
----------------------------
----------------------------
.. autofunction:: paddle.v2.fluid.nets.scaled_dot_product_attention
.. autofunction:: paddle.v2.fluid.nets.scaled_dot_product_attention
:noindex:
:noindex:
doc/api/v2/fluid/optimizer.rst
浏览文件 @
ee97604d
===========
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
Optimizer
!DO NOT EDIT THIS FILE MANUALLY!
===========
Optimizer
-----------
.. automodule:: paddle.v2.fluid.optimizer
:members: Optimizer
:noindex:
=========
optimizer
=========
SGDOptimizer
SGD
-----------
---
.. automodule:: paddle.v2.fluid.optimizer
:members: SGDOptimizer
:noindex:
.. autoclass:: paddle.v2.fluid.optimizer.SGD
:members:
:noindex:
Momentum
--------
MomentumOptimizer
.. autoclass:: paddle.v2.fluid.optimizer.Momentum
-----------------
:members:
.. automodule:: paddle.v2.fluid.optimizer
:members: MomentumOptimizer
:noindex:
:noindex:
Adagrad
-------
.. autoclass:: paddle.v2.fluid.optimizer.Adagrad
AdagradOptimizer
:members:
----------------
.. automodule:: paddle.v2.fluid.optimizer
:members: AdagradOptimizer
:noindex:
:noindex:
Adam
----
AdamOptimizer
.. autoclass:: paddle.v2.fluid.optimizer.Adam
-------------
:members:
.. automodule:: paddle.v2.fluid.optimizer
:members: AdamOptimizer
:noindex:
:noindex:
Adamax
------
AdamaxOptimizer
.. autoclass:: paddle.v2.fluid.optimizer.Adamax
-----------
:members:
.. automodule:: paddle.v2.fluid.optimizer
:members: AdamaxOptimizer
:noindex:
:noindex:
DecayedAdagrad
--------------
DecayedAdagradOptimizer
.. autoclass:: paddle.v2.fluid.optimizer.DecayedAdagrad
-----------------------
:members:
.. automodule:: paddle.v2.fluid.optimizer
:members: DecayedAdagradOptimizer
:noindex:
:noindex:
doc/api/v2/fluid/param_attr.rst
浏览文件 @
ee97604d
===========
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
==========
param_attr
==========
ParamAttr
ParamAttr
===========
---------
.. autoclass:: paddle.v2.fluid.param_attr.ParamAttr
:members:
:noindex:
WeightNormParamAttr
-------------------
ParamAttr
.. autoclass:: paddle.v2.fluid.param_attr.WeightNormParamAttr
-----------
:members:
.. automodule:: paddle.v2.fluid.param_attr
:members: ParamAttr
:noindex:
:noindex:
doc/api/v2/fluid/profiler.rst
浏览文件 @
ee97604d
===========
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
Profiler
!DO NOT EDIT THIS FILE MANUALLY!
===========
========
profiler
========
cuda_profiler
-------------
Profiler
-----------
.. autofunction:: paddle.v2.fluid.profiler.cuda_profiler
.. autofunction:: paddle.v2.fluid.profiler.cuda_profiler
:noindex:
:noindex:
reset_profiler
--------------
.. autofunction:: paddle.v2.fluid.profiler.reset_profiler
:noindex:
profiler
--------
.. autofunction:: paddle.v2.fluid.profiler.profiler
:noindex:
doc/api/v2/fluid/regularizer.rst
浏览文件 @
ee97604d
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
===========
===========
R
egularizer
r
egularizer
===========
===========
WeightDecayRegularizer
append_regularization_ops
----------------------
-------------------------
.. automodule:: paddle.v2.fluid.regularizer
:members: WeightDecayRegularizer
:noindex:
L2DecayRegularizer
.. autofunction:: paddle.v2.fluid.regularizer.append_regularization_ops
------------------
.. automodule:: paddle.v2.fluid.regularizer
:members: L2DecayRegularizer
:noindex:
:noindex:
L1Decay
-------
.. autoclass:: paddle.v2.fluid.regularizer.L1Decay
:members:
:noindex:
L1DecayRegularizer
L2Decay
-------------------
-------
.. automodule:: paddle.v2.fluid.regularizer
:members: L1DecayRegularizer
.. autoclass:: paddle.v2.fluid.regularizer.L2Decay
:members:
:noindex:
python/paddle/v2/fluid/__init__.py
浏览文件 @
ee97604d
...
@@ -36,28 +36,16 @@ from distribute_transpiler import DistributeTranspiler
...
@@ -36,28 +36,16 @@ from distribute_transpiler import DistributeTranspiler
from
distribute_transpiler_simple
import
SimpleDistributeTranspiler
from
distribute_transpiler_simple
import
SimpleDistributeTranspiler
import
clip
import
clip
from
memory_optimization_transpiler
import
memory_optimize
from
memory_optimization_transpiler
import
memory_optimize
import
profiler
Tensor
=
LoDTensor
Tensor
=
LoDTensor
__all__
=
framework
.
__all__
+
executor
.
__all__
+
[
__all__
=
framework
.
__all__
+
executor
.
__all__
+
[
'io'
,
'io'
,
'initializer'
,
'layers'
,
'nets'
,
'optimizer'
,
'learning_rate_decay'
,
'initializer'
,
'backward'
,
'regularizer'
,
'LoDTensor'
,
'CPUPlace'
,
'CUDAPlace'
,
'Tensor'
,
'layers'
,
'nets'
,
'optimizer'
,
'learning_rate_decay'
,
'backward'
,
'regularizer'
,
'LoDTensor'
,
'CPUPlace'
,
'CUDAPlace'
,
'Tensor'
,
'ParamAttr'
'ParamAttr'
'DataFeeder'
,
'DataFeeder'
,
'clip'
,
'SimpleDistributeTranspiler'
,
'DistributeTranspiler'
,
'clip'
,
'memory_optimize'
,
'profiler'
'SimpleDistributeTranspiler'
,
'DistributeTranspiler'
,
'memory_optimize'
,
]
]
...
...
python/paddle/v2/fluid/profiler.py
浏览文件 @
ee97604d
...
@@ -12,11 +12,11 @@
...
@@ -12,11 +12,11 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
paddle.v2.fluid.core
as
core
import
core
from
contextlib
import
contextmanager
from
contextlib
import
contextmanager
import
os
import
os
__all__
=
[
'
CudaP
rofiler'
]
__all__
=
[
'
cuda_profiler'
,
'reset_profiler'
,
'p
rofiler'
]
NVPROF_CONFIG
=
[
NVPROF_CONFIG
=
[
"gpustarttimestamp"
,
"gpustarttimestamp"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录