3
EgV2 @ s d Z ddlmZmZ ddlmZmZ ddlmZm Z m
Z
mZ ddlZ
G dd deZG dd d eZG d
d deZddd
Zdd ZG dd deZdS )aH
Implementation of an in-memory dataset with structured schema.
Use this to store and iterate through datasets with complex schema that
fit in memory.
Iterating through entries of this dataset is very fast since the dataset
is stored as a set of native Caffe2 tensors, thus no type conversion or
deserialization is necessary.
)core workspace)ReaderWriter)Structfrom_blob_listfrom_column_listInitEmptyRecordNc @ s. e Zd ZdddZdd Zdd Zd d
ZdS )
_DatasetReader Fc C s<