tensorflowbook icon indicating copy to clipboard operation
tensorflowbook copied to clipboard

Error In Chapter6's Speech Recognition Example

Open AllenWGX opened this issue 7 years ago • 2 comments

hi, I met up with an error : ValueError: Trying to share variable stack_bidirectional_rnn/cell_0/bidirectional_rnn/fw/lstm_cell/kernel, but specified shape (120, 160) and found shape (53, 160) when I ran the example in Chapter 6. My tf version is 1.3.0.

AllenWGX avatar Dec 07 '17 09:12 AllenWGX

我在tensorflow1.0版本和1.3版本跑都没有问题。 你是不是自己改了什么地方, 代码中也没有什么地方有shape是53的数据啊。

thewintersun avatar Dec 08 '17 08:12 thewintersun

I met with exactly the same problem after changing num_layers to 2. After switching back to 1 everything works perfectly. But I haven't figured out why there will be a bug yet.

TonyGongjc avatar Mar 09 '18 06:03 TonyGongjc