提交 3681af27 编写于 作者: L Luo Tao

add missing doc of v2 api

上级 56b6eadd
...@@ -356,6 +356,9 @@ def mixed(size=0, ...@@ -356,6 +356,9 @@ def mixed(size=0,
return MixedLayerV2(size, input, name, act, bias_attr, layer_attr) return MixedLayerV2(size, input, name, act, bias_attr, layer_attr)
mixed.__doc__ = conf_helps.mixed_layer.__doc__
class RecurrentLayerInput(Layer): class RecurrentLayerInput(Layer):
def __init__(self, recurrent_name, index, parent_layers): def __init__(self, recurrent_name, index, parent_layers):
parents_len = len(parent_layers) parents_len = len(parent_layers)
...@@ -404,6 +407,8 @@ data.__name__ = 'data' ...@@ -404,6 +407,8 @@ data.__name__ = 'data'
AggregateLevel = conf_helps.layers.AggregateLevel AggregateLevel = conf_helps.layers.AggregateLevel
ExpandLevel = conf_helps.layers.ExpandLevel ExpandLevel = conf_helps.layers.ExpandLevel
memory = MemoryV2 memory = MemoryV2
memory.__name__ = 'memory'
memory.__doc__ = conf_helps.memory.__doc__
def __layer_name_mapping__(inname): def __layer_name_mapping__(inname):
...@@ -512,6 +517,9 @@ def recurrent_group(step, input, name=None): ...@@ -512,6 +517,9 @@ def recurrent_group(step, input, name=None):
return retv return retv
recurrent_group.__doc__ = conf_helps.recurrent_group.__doc__
@wrap_name_default() @wrap_name_default()
def beam_search(step, def beam_search(step,
input, input,
...@@ -579,6 +587,8 @@ def beam_search(step, ...@@ -579,6 +587,8 @@ def beam_search(step,
return tmp return tmp
beam_search.__doc__ = conf_helps.beam_search.__doc__
__projection_names__ = filter(lambda x: x.endswith('_projection'), __projection_names__ = filter(lambda x: x.endswith('_projection'),
dir(conf_helps)) dir(conf_helps))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册