title: Tensorflow Get a Number of a Tensor
body: <p>I have a random Search Problem. I need the hyperparameter.</p>
  <pre><code>z_mean = Dense(units=hp.Int('unitsBottle',min_value=8,max_value=48,step=8))(h)
  latentVariable = hp.get('unitsBottle')
  z_log_var = Dense(units=latentVariable)(h)
  </code></pre>
  <p>latentVariable is a tensor. I can print it:</p>
  <pre><code>tf.Tensor(16, shape=(), dtype=int32)
  </code></pre>
  <p>But I need the number 16. Not as a tensor. As an integer number (scalar), so that I can put it into</p>
  <pre><code>z = Lambda(sampling, 
              output_shape=(latenteVariable,))([z_mean, 
              z_log_var, latenteVariable])
  </code></pre>
  <p>How can I only get the number?</p>