提交 811f5cca 编写于 作者: Y yuyang18

Hide StaticRNNMemory

上级 c2e8f40d
...@@ -27,7 +27,6 @@ __all__ = [ ...@@ -27,7 +27,6 @@ __all__ = [
'merge_lod_tensor', 'merge_lod_tensor',
'BlockGuard', 'BlockGuard',
'BlockGuardWithCompletion', 'BlockGuardWithCompletion',
'StaticRNNMemoryLink',
'WhileGuard', 'WhileGuard',
'While', 'While',
'Switch', 'Switch',
...@@ -410,16 +409,17 @@ class StaticRNNMemoryLink(object): ...@@ -410,16 +409,17 @@ class StaticRNNMemoryLink(object):
""" """
StaticRNNMemoryLink class. StaticRNNMemoryLink class.
Args:
init: the initial variable for Memory
init: Variable
pre_mem: the memory variable in previous time step
pre_mem: Variable
mem: the memory variable in current time step
mem: Variable
StaticRNNMemoryLink class is used to create a link between two StaticRNNMemoryLink class is used to create a link between two
memory cells of a StaticRNN. memory cells of a StaticRNN.
NOTE: This is a internal data structure of a very low-level API.
Please use StaticRNN instead.
Args:
init(Variable): the initial variable for Memory.
pre_mem(Variable): the memory variable in previous time step.
mem(Variable): the memory variable in current time step.
""" """
def __init__(self, init, pre_mem, mem=None): def __init__(self, init, pre_mem, mem=None):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册