def close(self):
"""Close the environment.
Before closing, the number of samples is written to `meta_db`.
Invalidates any open iterators, cursors, and transactions.
"""
self.set_meta_str(NB_SAMPLES, self.nb_samples)
self._lmdb_env.close()
评论列表
文章目录