I used tf.Variable for W (weights) and b (biases), but tf.placeholder for X (input batch) and Y (expected values for this batch). And all works ok. But today I found this topic: Tensorflow github issues And quote:
Feed_dict does a single-threaded memcpy of contents from Python runtime into TensorFlow runtime. If data is needed on GPU, then you'll have an additional CPU->GPU transfer. I'm used to seeing up to 10x improvement in performance when switching from feed_dict to native TensorFlow (Variable/Queue)
And now I try to find how to use tf.Variable or Queue for input data and no feed_dict, for speed improvement, especcially for batches. Cause I need change data batch one by one. And when all batches are done - end of epoch. And than from the begining, second epoch, etc...
But sorry, I don't understand how can I use that.