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).