Extract only a portion of a numpy array from tf.data
Extract only a portion of a numpy array from tf.data Question: I have a NumPy array of shape 500,36,24,72. Now I want to create a data pipeline for a problem using tf.data. For every iteration, only a subset of the array is required, for example, first the model is trained over [500,x:y,24,72], wherein only a …