dynamic_lstm和dynamic_gru的H0如何使用?
Created by: gavin1332
dynamic_gru为什么要求h_0的shape为(hid_size, hid_size),不应该是(-1, hid_size)么?请参见代码 https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/fluid/layers/nn.py 681行左右:assert h_0.shape == (size, size), 'The shape of h0 should be(%d, %d)' % (size, size)
另外dynamic_lstm目前无法支持H0,有其他可代替的方法吗?