Quantcast
Channel: Tensorflow: feeding data to the graph - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Tensorflow: feeding data to the graph

$
0
0

I have written an algorithm using Tensorflow. The structure of my code is as follows:

  1. Read data from a csv and store it in a list of lists, where each list contains a single line from a csv.

  2. Use the feed_dict approach to feed the graph a single line of data. This is done in a loop till all the lines are processed.

The TF graph is executed on the GPU. My question is related to the data transfer which will happen from the CPU to the GPU. Does using feed_dict mean that there will be lots of small transfers from the host to the device? If yes, would it be feasible to do a bulk transfer using feed_dict and use a loop in the TF graph?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images