title: How to feed python lists into Tensorflow
body: <p>I've processed some data for usage with tensorflow into two python lists. Unfortunately, Tensorflow does not support Python lists as an input for fitting a model. A short and simple code snippet of what my current implementation looks like follows below:</p>
  
  <pre><code>data = loadData()
  pythonListInputData = data[0]
  pythonListInputLabels = data[1]
  model = prepModel() #note that this uses keras
  model.fit(pythonListInputData, pythonListInputLabels) #Leaving out my configuration settings here for simplicities sake
  </code></pre>
  
  <p>This results in an error:</p>
  
  <pre><code>ValueError: Please provide as model inputs either a single array or a list of arrays.
  </code></pre>
  
  <p>I get this error when pythonListInputData is either a list of lists or a list of arrays.</p>
  
  <p>I've read through the Tensorflow tutorials and documentation but am struggling to find any useful info that makes this work.</p>
  
  <p>Edit: Data structure is as follows:</p>
  
  <pre><code>pythonListInputData = data[0]
  </code></pre>
  
  <p>is a list of lists of integers e.g. [[234, 1, 4], [245, 2, 5], [123, 5, 11], ...]</p>
  
  <p>I have also tried an alternative which is constructed as follows</p>
  
  <pre><code>pythonListInputData = []
  for entry in data[0]:
      pythonListInputData.append(array.array('I', entry))
  </code></pre>
  
  <p>where data[0] is the format mentioned above.</p>
  
  <pre><code>pythonListInputLabels = data[1]
  </code></pre>
  
  <p>is a list of integers e.g. [1, 4, 2, ...]</p>