opened
lmolhw5252
username_0
Traceback (most recent call last):
  File "/home/user/PycharmProjects/MDLSTM-master/main.py", line 90, in <module>
    run(1)
  File "/home/user/PycharmProjects/MDLSTM-master/main.py", line 53, in run
    rnn_out, _ = multi_dimensional_rnn_while_loop(rnn_size=hidden_size, input_data=x, context_wind_shape=[1, 1])
  File "/home/user/PycharmProjects/MDLSTM-master/md_lstm.py", line 193, in multi_dimensional_rnn_while_loop
    parallel_iterations=1)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/control_flow_ops.py", line 2816, in while_loop
    result = loop_context.BuildLoop(cond, body, loop_vars, shape_invariants)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/control_flow_ops.py", line 2640, in BuildLoop
    pred, body, original_loop_vars, loop_vars, shape_invariants)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/control_flow_ops.py", line 2576, in _BuildLoop
    c = ops.convert_to_tensor(pred(*packed_vars))
  File "/home/user/PycharmProjects/MDLSTM-master/md_lstm.py", line 190, in condition
    return tf.less(time_, tf.constant(h_red * w_red))
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/constant_op.py", line 208, in constant
    value, dtype=dtype, shape=shape, verify_shape=verify_shape))
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/tensor_util.py", line 383, in make_tensor_proto
    _AssertCompatible(values, dtype)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/tensor_util.py", line 300, in _AssertCompatible
    raise TypeError("List of Tensors when single Tensor expected")
TypeError: List of Tensors when single Tensor expected
TypeError: List of Tensors when single Tensor expected
issue