(self, inputs, state, scope = None)
return output, new_state
Gated recurrent unit (GRU) with nunits cells.
Gated recurrent unit (GRU) with nunits cells.
Gated recurrent unit ( GRU ) with nunits cells .
def __call__(self, inputs, state, scope = None):
    """Gated recurrent unit (GRU) with nunits cells."""
    with vs.variable_scope("attention_pool"):
        inputs = gated_attention(self._attention,
                                inputs,
                                state,
                                self._num_units,
                                params = self._params,
                                self_matching = self._self_matching,
                                memory_len = self._memory_len)
    output, new_state = self._cell(inputs, state, scope)
    return output, new_state
def __call__ ( self , inputs , state , scope = None ) : with vs . variable_scope ( "attention_pool" ) : inputs = gated_attention ( self . _attention , inputs , state , self . _num_units , params = self . _params , self_matching = self . _self_matching , memory_len = self . _memory_len ) output , new_state = self . _cell ( inputs , state , scope ) return output , new_state