matroid / dlwithtf

TensorFlow for Deep Learning Book
http://shop.oreilly.com/product/0636920065869.do
321 stars 160 forks source link

Issue running code for Chapter 07(RNN) #13

Closed sohaibfarooqi closed 6 years ago

sohaibfarooqi commented 6 years ago

Hi, Thanks for the awesome repo. I am trying to run chapter 07 code and getting error at this line. The error message is as follows:

ValueError: Index out of range using input dim 2; input has only 2 dims for 'strided_slice_1' (op: 'StridedSlice') with input shapes: [20,20], [3], [3], [3] and with computed input tensors: input[3] = <1 1 1>.

I have noticed that input data is two dim while in this example you are slicing in three dims. Can you please propose a fix / work-around to this?

I have uploaded my code to this notebook!

Thanks!