
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 · 368 阅读 · 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 · 5717 阅读 · 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 · 722 阅读 · 0 评论