Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def parser(path):
- x = np.load(path)
- return x
- paths = ['data1.npy', 'data2.npy', 'data3.npy', 'data4.npy', ... ]
- dataset = tf.data.Dataset.from_tensor_slices((paths))
- dataset = dataset.map(map_func=parser)
Add Comment
Please, Sign In to add comment