TypeError: Value passed to parameter 'input' has DataType float64 not in list of allowed values: fl

来源:互联网 发布:美国非农数据公布时间一览表 编辑:程序博客网 时间:2024/04/30 15:08

File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py", line 590, in apply_op param_name=input_name) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py", line 61, in _SatisfiesTypeConstraint ", ".join(dtypes.as_dtype(x).name for x in allowed_list)))TypeError: Value passed to parameter 'input' has DataType float64 not in list of allowed values: float32, float16



 images=tf.image.convert_image_dtype(images,tf.float32)


阅读全文
0 0