I am using Tensorflow 1.0.0 . When I ran the following line:
qp_states = tf.transpose(qp_states, [1,0,-1])
It prompted:
InvalidArgumentError: Dimension must be 4 but is 3 for 'qp/transpose' (op: 'Transpose') with input shapes: [20,3,8,300], [3].
Is it because I am not using Tensorflow of the same version as you?