Is there a way to save an intermediate output in Tensorflow to a file?
<p>I have a conv net that does a bunch of things.</p>

<p>The inference code looks something like this:</p>

<pre><code>conv0_feature_count = 2
with tf.variable_scope('conv0') as scope:
    kernel = _variable_with_weight_decay('weights', shape=[5, 5, 1, conv0_feature_count], stddev=5e-2, wd=0.0)
    conv = tf.nn.conv2d(images, kernel, [1, 1, 1, 1], padding='SAME')
    biases = _variable_on_cpu('biases', [conv0_feature_count], tf.constant_initializer(0.0))
    bias = tf.nn.bias_add(conv, biases)
    conv0 = tf.nn.relu(bias, name=scope.name)
</code></pre>

<p>And so on and so forth followed by max pooling, etc.</p>

<p>I would like to be able to save conv0 to a file for inspection.  I know that tf.Print would print the values in the console, but it is a big tensor.  Printing the value makes no sense.</p>