Tensorflow的GRUCell的以下代碼顯示了當前一個隱藏狀態與序列中的當前輸入一起提供時,獲取更新隱藏狀態的典型操作。 def __call__(self, inputs, state, scope=None):
"""Gated recurrent unit (GRU) with nunits cells."""
with vs.variable_scope(scop
我想在某些時間序列數據上運行GRU單元,以根據最後一層中的激活對它們進行聚類。我做了一個小改動,GRU單元實現 def __call__(self, inputs, state, scope=None):
"""Gated recurrent unit (GRU) with nunits cells."""
with vs.variable_scope(scope or type(self).