mxnet.gluon.data.RecordFileDataset¶
-
class
mxnet.gluon.data.RecordFileDataset(filename)[source]¶ A dataset wrapping over a RecordIO (.rec) file.
Each sample is a string representing the raw content of an record.
- Parameters
filename (str) – Path to rec file.
Methods
__init__(filename)Initialize self.
transform(fn[, lazy])Returns a new dataset with each sample transformed by the transformer function fn.
transform_first(fn[, lazy])Returns a new dataset with the first element of each sample transformed by the transformer function fn.