Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [12 43 64 34 45 2 13 54] [34 65 34 67 87 12 23 43] [23 53 23 1 5] ...
- [12] [43] [64] [34] [45] [2] [13] [54] [34] [65] [34] [67] [87] [12] ...
- output_labels = self.dataset.flat_map(convert_labels)
- ...
- def convert_labels(tensor):
- id_list = tf.unstack(tf.reshape(tensor, [-1, 1]))
- return tf.data.Dataset.from_tensors(id_list)
Add Comment
Please, Sign In to add comment