I have a list of Numpy arrays of different shape.
I need to create a Dataset, so that each time an element is requested I get a tensor with the shape and values of the given Numpy array.
How can I achieve this?
This is NOT working:
dataset = tf.data.Dataset.from_tensor_slices(list_of_arrays)
since you get, as expected:
Can't convert non-rectangular Python sequence to Tensor.
p.s. I know that it will not be possible to batch a Dataset with elements of different shapes.