私は、CNNの入力としてテンソルを得るためにコンカットを使用します。しかし、エラーが発生しました:単一テンソルはシングルテンソル予想時のテンソルリスト
image_raw = img.tobytes()
image = tf.decode_raw(image_raw, tf.uint8)
image = tf.reshape(image, [1, image_height, image_width, 3])
image_val = image
for i in range(batch_size-1):
image_val = tf.concat(0,[image_val,image])
return image_val
を期待テンソルのリストは、私が戻る前に image_val = tf.stack([image_val],0)
を追加し、これらの質問に対する答えを検索するが、それでも同じエラーを取得している、なぜ?
**build environment:**
TensorFlow version 0.12
python 3.5
image_heightまたは/およびimage_widthはテンソルですか? – lerner