title: Tensorflow.js tf.Tensor to JS number
body: <p>I am working a bit with Tensorflow.js and I want to plot some data that are stored as tf.Tensors. I cannot find a method that converts them to ordinary JS numbers.</p>
  
  <pre><code>const a = tf.Scalar(1)
  const b = tf.Scalar(2)
  var array = []
  // Now o want to push the numbers 1 and 2 to mye array
  array.push(a)
  array.push(b)
  </code></pre>
  
  <p>This code gives my an array of tensor objects. I want an array of numbers. Any idea of how to proceed? Thank you.</p>