I'm learning python code for Deep Learning related things called TensorFlow. https://www.tensorflow.org/versions/master/tutorials/mnist/tf/index.html#tensorflow-mechanics-101
http://qiita.com/7of9/items/e184bde61545da9267c5 About range () and xrange () that I was interested in.
http://nonbiri-tereka.hatenablog.com/entry/2014/10/24/102639
xrange is faster, isn't it? Is it because the values are retrieved as needed? However, memory is definitely low in xrange, so use xrange when it consumes a lot of memory.
It seems that the memory usage efficiency is different.
Use xrange.
Recommended Posts