![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow
Stupid-Tyro
这个作者很懒,什么都没留下…
展开
-
tensorflow搭建NN 以及前向传播
张量表示数据,用计算图搭建神经网络,用回话执行计算图,优化线上的权重(参数),得到模型张量tensor:多维数组(列表),阶:张量的维数1-D 向量 v = [1,2,3]2-D 矩阵 m = [[1,2,3],[1,2,3],[4,5,6]]n-D 张量 t = [[[n个…]]]数据类型tf.float32,tf.int32常数a = tf.constant([1.0,2....原创 2019-05-30 22:00:16 · 317 阅读 · 0 评论 -
FailedPreconditionError (see above for traceback): Attempting to use uniniti alized value Variable
FailedPreconditionError (see above for traceback): Attempting to use uniniti alized value Variable错误原因:定义variables后,在session中没有执行初始化解决办法:with tf.Session() as sess:init_op = tf.global_variables_in...原创 2019-05-31 20:19:05 · 5659 阅读 · 4 评论 -
InvalidArgumentError (see above for traceback): You must feed a value for placeholder tensor 'Placeh
InvalidArgumentError (see above for traceback): You must feed a value for placeholder tensor ‘Placeholder’ with dtype float and shape [1,2]错误原因:先执行了sess.run(y,feed_dict={x:[[……]]})在下一行又写了print(sess...原创 2019-05-31 20:20:12 · 667 阅读 · 0 评论