title: tf.lookup.StaticHashTable with lists (of arbitrary sizes) as values
body: <p>I want to associate to each person's name a list of numbers.</p>
  <pre><code>keys = [&quot;Fritz&quot;, &quot;Franz&quot;, &quot;Fred&quot;]
  values = [[1, 2, 3], [4, 5], [6, 7, 8, 9]]
  </code></pre>
  <p>If I run the following:</p>
  <pre><code>import tensorflow as tf
  table = tf.lookup.StaticHashTable(tf.lookup.KeyValueTensorInitializer(keys, values), default_value=0)
  </code></pre>
  <p>, I get a <code>ValueError: Can't convert non-rectangular Python sequence to Tensor.</code>
  since the lists are not of the same size and hence cannot be converted to a <code>tf.Tensor</code>.</p>
  <p><strong>Is there another way to associate the values of a tensor to lists of arbitrary shape?</strong></p>
  <p>Thank you for your help :)</p>