Skip to content

Commit

Permalink
Update 5. 输入文件队列.ipynb
Browse files Browse the repository at this point in the history
tf.local_variables_initializer()
  • Loading branch information
codercuixin authored Jul 12, 2017
1 parent d38a76d commit 502da0a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@
"example, label = features['i'], features['j']\n",
"batch_size = 2\n",
"capacity = 1000 + 3 * batch_size\n",
"capacity = 1000 + 3 * batch_size\n",
"example_batch, label_batch = tf.train.batch([example, label], batch_size=batch_size, capacity=capacity)\n",
"\n",
"with tf.Session() as sess:\n",
" tf.global_variables_initializer().run()\n",
" tf.local_variables_initializer().run()\n",
" coord = tf.train.Coordinator()\n",
" threads = tf.train.start_queue_runners(sess=sess, coord=coord)\n",
" for i in range(3):\n",
Expand Down

0 comments on commit 502da0a

Please sign in to comment.