tensorflow 出现 data type not understood 错误解决办法

本人在运行最简单的cnn时,遇到了 data type not understood 这一错误,百思不得其解,具体错误如下图。



查看错误语句:

 biases = tf.get_variable('biases', [8], tf.constant_initializer(0.0))

好像也没啥问题呀,上网搜索许久,突然发现原来正确的语句是这样的:

 biases = tf.get_variable('biases', [8], initializer=tf.constant_initializer(0.0))
尴尬了,只能说要注意细节呀~~~

猜你喜欢

转载自blog.csdn.net/baidu_33122327/article/details/79554860