I would like to create a number of tf.data.Dataset using the from_generator() function. I would like to send an argument to the generator function (
tf.data.Dataset
from_generator()
For Tensorflow 2.4:
training_dataset = tf.data.Dataset.from_generator( raw_data_gen, args=(1), output_types=(tf.float32, tf.uint8), output_shapes=([None, 1], [None]))