function generateLatentSpace(dimensions, pointsPerDim, start, end) {
  const result = [];
  for (let i = 0; i < dimensions; i++) {
    const values = tf.linspace(start, end, pointsPerDim);
    result.push(values);
  }

  return result;
}
Generates a representation of a latent space.

Returns an array of tensors representing each dimension. Currently
each dimension is evenly spaced in the same way.

@param {number} dimensions number of dimensions
@param {number} pointsPerDim number of points in each dimension
@param {number} start start value
@param {number} end end value
@returns {Tensor1d[]}