title: Tensorflow - How to Convert int32 to string (using Python API for Tensorflow)
body: <p>Simple question really but cannot seem to find a function in the TensorFlow docs or by googling.</p>
  
  <p>How can I convert a tensor of type <code>tf.int32</code> to one of type <code>tf.string</code>?</p>
  
  <p>I tried simply casting it with something like this:</p>
  
  <pre><code>x = tf.constant([1,2,3], dtype=tf.int32)
  x_as_string = tf.cast(x, dtype=tf.string) # hoping for this output: [ '1', '2', '3' ]
  
  with tf.Session() as sess:
    res = sess.run(x_as_string)
  </code></pre>
  
  <p>but hit the error message:</p>
  
  <blockquote>
    <p>Cast int32 to string is not supported</p>
  </blockquote>
  
  <p>Is there a simple function somewhere in the documentation that I am missing?</p>
  
  <hr>
  
  <p>UPDATE:</p>
  
  <p>To clarify: I realise I could 'work around' this issue using a python function with <code>tf.py_func</code> but asking if there is a solution in TensorFlow itself</p>