Guest User

Untitled

a guest
Aug 14th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. def parser(path):
  2. x = np.load(path)
  3. return x
  4.  
  5. paths = ['data1.npy', 'data2.npy', 'data3.npy', 'data4.npy', ... ]
  6.  
  7. dataset = tf.data.Dataset.from_tensor_slices((paths))
  8. dataset = dataset.map(map_func=parser)
Add Comment
Please, Sign In to add comment