ValueError: Input graph and Layer graph are not the same: Tensor("hidden2/Relu:0", shape=(4, 150), d

Once you have launched a sess, you can use your_tensor.eval(session=sess) or sess.run(your_tensor) to get you feed tensor into the format of numpy.array and then feed it to your placeholder.

  • 数据集过大的时候placeholder不适应,直接从文件读取:
    The cnn_1.py in your git repo is modified from the original file in the official tutorial of TF right? If you have a close look at its original code, you will find no placeholders in it which means the input of the model is the second way(readings from files not feeding) according to this, as a result, you can’t feed any data to this model.
    Since cifar10 is not a small dataset like mnist, placeholder is not suitable for this kind of large datasets, personally I think reading inputs from files is the best way to train it. If you still want to use placeholder you’d better write a next_batch method in mnist for cifar10 so as to feed the placeholder<

cankao:https://github.com/tensorflow/tensorflow/issues/4842

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值