
TensorFlow
孙ちゃん(颖)♂
一点点前进~
展开
-
ValueError:could not broadcast input array from shape (148,148,32) into shape (1)错误原因
ValueError: could not broadcast input array from shape (148,148,32) into shape (1)原本是一个简单的list转换为array函数,结果却出现这样的错误:could not broadcast input array from shape (128,128,3) into shape (1)后来尝试了网上很多种方法,都没有办法解决问题。可能的原因:1、本身的数据集出现问题,没有统一尺寸。2、(我代码出错的地方)ten原创 2020-07-13 16:49:24 · 5978 阅读 · 0 评论 -
tf.name_scope()和tf.variable_scope()辨析
tf.name_scope()在 Tensorflow 当中有两种途径生成变量 variable, 一种是tf.get_variable(), 另一种是tf.Variable(). 如果在tf.name_scope()的框架下使用这两种方式, 结果会如下:import tensorflow as tfwith tf.name_scope("a_name_scope"): ...原创 2019-12-03 16:48:05 · 111 阅读 · 0 评论