how to use pl to process tfrecords data? #8161
-
how to use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
How you use python and pytorch to handle tfrecords data is how you use it in |
Beta Was this translation helpful? Give feedback.
-
Depends on what data you have inside TFRecord, but you can see usage: def train_dataloader():
# index_path = None
# tfrecord_path = "/tmp/data.tfrecord"
# description = {"image": "byte", "label": "float"}
dataset = TFRecordDataset(tfrecord_path, index_path, description)
loader = torch.utils.data.DataLoader(dataset, batch_size=32)
return loader also check how to work with dataset - https://discuss.pytorch.org/t/read-dataset-from-tfrecord-format/16409/15 |
Beta Was this translation helpful? Give feedback.
Depends on what data you have inside TFRecord, but you can see usage:
https://github.com/vahidk/tfrecord#reading-tfexample-records-in-pytorch
also check how to work with dataset - https://discuss.pytorch.org/t/read-dataset-from-tfrecord-format/16409/15