function getLatentVectors(numRepeats) {
  return tf.tidy(() => {
    const latentDims = latentSliders.length;
    const zs = [];
    for (let i = 0; i < latentDims; ++i) {
      zs.push(+latentSliders[i].value);
    }
    const singleLatentVector = tf.tensor2d(zs, [1, latentDims]);
    return singleLatentVector.tile([numRepeats, 1]);
  });
}
Read the value of the latent-space vector fromthe sliders.

@param {number} numRepeats Number of times to tile the single latent vector
  for. Used for generating a batch of fake MNIST images.
@returns The tiled latent-space vector, of shape [numRepeats, latentDim].