chainer.datasets.open_pickle_dataset¶
-
chainer.datasets.
open_pickle_dataset
(path)[source]¶ Opens a dataset stored in a given path.
This is a hepler function to open
PickleDataset
. It opens a given file in binary mode, and creates aPickleDataset
instance.This method does not close the opened file. A user needs to call
PickleDataset.close()
or use with:with chainer.datasets.open_pickle_dataset('path') as dataset: pass # use dataset
- Parameters
path (str) – Path to a dataset.
- Returns
Opened dataset.
- Return type