lmdb_dataset function

Create a LMDBDataset.

Create a LMDBDataset.

This function allows a user to read data from a LMDB file. A lmdb file consists of (key value) pairs sequentially.

lmdb_dataset(filenames)

Arguments

  • filenames: A tf.string tensor containing one or more filenames.

Examples

## Not run: dataset <- sequence_file_dataset("testdata/data.mdb") %>% dataset_repeat(1) sess <- tf$Session() iterator <- make_iterator_one_shot(dataset) next_batch <- iterator_get_next(iterator) until_out_of_range({ batch <- sess$run(next_batch) print(batch) }) ## End(Not run)
  • Maintainer: Yuan Tang
  • License: Apache License 2.0
  • Last published: 2019-12-19