Public Member Functions | |
def | __del__ |
def | __init__ |
def | getdata |
def | getindex |
def | getlabel |
def | getpad |
def | iter_next |
def | next |
def | provide_data |
def | provide_label |
def | reset |
Public Attributes | |
batch_size | |
current_batch | |
data_ready | |
data_taken | |
iters | |
n_iter | |
next_batch | |
prefetch_threads | |
rename_data | |
rename_label | |
started |
Base class for prefetching iterators. Takes one or more DataIters ( or any class with "reset" and "next" methods) and combine them with prefetching. For example: Parameters ---------- iters : DataIter or list of DataIter one or more DataIters (or any class with "reset" and "next" methods) rename_data : None or list of dict i-th element is a renaming map for i-th iter, in the form of {'original_name' : 'new_name'}. Should have one entry for each entry in iter[i].provide_data rename_label : None or list of dict Similar to rename_data Examples -------- iter = PrefetchingIter([NDArrayIter({'data': X1}), NDArrayIter({'data': X2})], rename_data=[{'data': 'data1'}, {'data': 'data2'}])
Definition at line 15 of file PrefetchingIter.py.
def utils.PrefetchingIter.PrefetchingIter.__init__ | ( | self, | |
iters, | |||
rename_data = None , |
|||
rename_label = None |
|||
) |
Definition at line 36 of file PrefetchingIter.py.
def utils.PrefetchingIter.PrefetchingIter.__del__ | ( | self | ) |
Definition at line 71 of file PrefetchingIter.py.
def utils.PrefetchingIter.PrefetchingIter.getdata | ( | self | ) |
Definition at line 131 of file PrefetchingIter.py.
def utils.PrefetchingIter.PrefetchingIter.getindex | ( | self | ) |
Definition at line 137 of file PrefetchingIter.py.
def utils.PrefetchingIter.PrefetchingIter.getlabel | ( | self | ) |
Definition at line 134 of file PrefetchingIter.py.
def utils.PrefetchingIter.PrefetchingIter.getpad | ( | self | ) |
Definition at line 140 of file PrefetchingIter.py.
def utils.PrefetchingIter.PrefetchingIter.iter_next | ( | self | ) |
Definition at line 112 of file PrefetchingIter.py.
def utils.PrefetchingIter.PrefetchingIter.next | ( | self | ) |
Definition at line 125 of file PrefetchingIter.py.
The name and shape of data provided by this iterator
Definition at line 79 of file PrefetchingIter.py.
The name and shape of label provided by this iterator
Definition at line 91 of file PrefetchingIter.py.
def utils.PrefetchingIter.PrefetchingIter.reset | ( | self | ) |
Definition at line 102 of file PrefetchingIter.py.
Definition at line 36 of file PrefetchingIter.py.
Definition at line 36 of file PrefetchingIter.py.
Definition at line 36 of file PrefetchingIter.py.
Definition at line 36 of file PrefetchingIter.py.
Definition at line 36 of file PrefetchingIter.py.
Definition at line 36 of file PrefetchingIter.py.
Definition at line 36 of file PrefetchingIter.py.
Definition at line 36 of file PrefetchingIter.py.
Definition at line 36 of file PrefetchingIter.py.
Definition at line 36 of file PrefetchingIter.py.
Definition at line 36 of file PrefetchingIter.py.