Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/performance/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Tensorflow 如何从教程中模拟网络_Tensorflow - Fatal编程技术网

Tensorflow 如何从教程中模拟网络

Tensorflow 如何从教程中模拟网络,tensorflow,Tensorflow,我有一个tensorflow的卷积网络代码: 如何模拟这个网络?也就是说,我想从mnist.test.images获取特定图像的网络答案。诸如此类: print simulate(network, mnist.test.images[0]) # [0, 1, 0, 0, 0, 0, 0, 0, 0, 0] 在张量流中,可以计算图中的每个节点。因此,与评估精度的方法类似,您还可以评估图中的任何其他节点。整个神经网络由它的最后一层表示,在您的例子中是y\u conv。我手边没有TensorFlo

我有一个tensorflow的卷积网络代码:

如何模拟这个网络?也就是说,我想从
mnist.test.images
获取特定图像的网络答案。诸如此类:

print simulate(network, mnist.test.images[0])
# [0, 1, 0, 0, 0, 0, 0, 0, 0, 0] 

在张量流中,可以计算图中的每个节点。因此,与评估
精度的方法类似,您还可以评估图中的任何其他节点。整个神经网络由它的最后一层表示,在您的例子中是
y\u conv
。我手边没有TensorFlow,但按照下面的思路应该可以:

y_conv.eval(feed_dict={x: mnist.test.images[0]})
y_conv.eval(feed_dict={x: mnist.test.images[0]})