ValueError: Cannot feed value of shape (100, 100) for Tensor u'Reshape_1:0', which has shape '(10000

错误内容:

Traceback (most recent call last):
  File "/home/dn236/PycharmProjects/drum_transcription_2/data_test_whole_file.py", line 331, in
    print sess.run(result, feed_dict={x: xtr, y: ytr})
  File "/home/dn236/tensorflow/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 895, in run
    run_metadata_ptr)
  File "/home/dn236/tensorflow/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1104, in _run
    % (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (100, 100) for Tensor u'Reshape_1:0', which has shape '(10000, 1)'

这次产生这个错误的原因是因为我想把用feed_dict传入的参数y进行reshape后重新赋值给y。

解决办法:指定给另一个值。

你可能感兴趣的:(BUG)