def __init__(self, shortlist_size, decoder_out_size, state_size,
trainable=True, scope='PointingSoftmaxOutput'):
"""Initializes a new instance.
Arguments:
shorlist_size: a `int` representing the dimension of the known output vocabulary.
decoder_out_size: a `int` representing the output size of the recoder.
state_size: a `int` representing the size of the attention states.
trainable: if `True`, the created variables will be trainable.
scope: VariableScope for the created subgraph;.
"""
super(PointingSoftmaxOutput, self).__init__(trainable=trainable, scope=scope)
self._shortlist_size = shortlist_size
self._decoder_out_size = decoder_out_size
self._state_size = state_size
评论列表
文章目录