title: How can I convert a tensor into a ndarray in TensorFlow?
body: <p>My goal is to convert a tensor into a ndarray without 'run' or 'eval'.
  I wanted to perform the same operation as the example.</p>
  
  <pre class="lang-py prettyprint-override"><code>A = tf.constant(5)
  B = tf.constant([[A, 1], [0,0]])
  </code></pre>
  
  <p>However, ndarray can be inside tf.constant but tensor cannot.
  Therefore, I tried to perform the operation using the following example, but tf.make_ndarray does not work.</p>
  
  <pre class="lang-py prettyprint-override"><code>A = tf.constant(5)
  C = tf.make_ndarray(A)
  B = tf.constant([[C, 1], [0,0]])
  </code></pre>
  
  <p><a href="https://github.com/tensorflow/tensorflow/issues/28840#issuecomment-509551333" rel="nofollow noreferrer">https://github.com/tensorflow/tensorflow/issues/28840#issuecomment-509551333</a></p>
  
  <p>As mentioned in the github link above, tf.make_ndarray does not work.
  To be precise, an error occurs because tensorflow requires a 'tensor_shape' that does not exist, instead of a 'shape' that exists.</p>
  
  <p>How can I run the code in this situation?</p>