def __init__(self, num_units, forget_bias=1.0, input_size=None): BasicLSTMCell.__init__(self, num_units, forget_bias=forget_bias, input_size=input_size) self.matrix, self.bias = None, None
def __init__(self, kwd_voc_size, *args, **kwargs): BasicLSTMCell.__init__(self, *args, **kwargs) self.key_words_voc_size = kwd_voc_size