Tensorflow errror

I am trying to use a simple example from Edwards on TensorFlow and I have tried both on jupyter notebook and on pycharm, the code breaks in the inference section run.inference() and when I trace it back it is breaking in a TensorFlow call. The error I am getting is from a TensorFlow function as :
File “C:\Users\admin\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py”, line 2085, in _reconstruct_sequence_inputs
grouped_inputs.append(inputs[i])
IndexError: list index out of range
I am just following a tutorial example. There are no issues of reshape etc.