The problem is I have big dataset and for each epoch i want to use only random subset of this dataset, but how can I make it using tf.data API.
There are two approaches.
- use filters
def create_filter(proba):
return tf.less_equal(tf.random_uniform([], dtype=tf.float32),