1
I'm有問題餵養我的佔位符(keep_prob)之一。錯誤說我必須提供一個浮點值,但我已經在做它。我一直在試圖解決它,但我無法找出解決方案。我的代碼是在這裏:錯誤餵養的佔位符
Error while running a convolutional network using my own data in Tensorflow
而且我的錯誤是:
File "<ipython-input-81-fd184c90091e>", line 4, in <module>
keep_prob = tf.placeholder(tf.float32)
File "c:\python36\lib\site-packages\tensorflow\python\ops\array_ops.py",
line 1530, in placeholder
return gen_array_ops._placeholder(dtype=dtype, shape=shape, name=name)
File "c:\python36\lib\site-packages\tensorflow\python\ops\gen_array_ops.py",
line 1954, in _placeholder
name=name)
File "c:\python36\lib\site-
packages\tensorflow\python\framework\op_def_library.py", line 767, in
apply_op
op_def=op_def)
File "c:\python36\lib\site-packages\tensorflow\python\framework\ops.py",
line 2506, in create_op
original_op=self._default_original_op, op_def=op_def)
File "c:\python36\lib\site-packages\tensorflow\python\framework\ops.py",
line 1269, in __init__
self._traceback = _extract_stack()
InvalidArgumentError (see above for traceback): You must feed a value for
placeholder tensor 'Placeholder_17' with dtype float
[[Node: Placeholder_17 = Placeholder[dtype=DT_FLOAT, shape=<unknown>,
_device="/job:localhost/replica:0/task:0/cpu:0"]()]]
謝謝。