Public Member Functions | |
def | __init__ (self, builder, piper) |
def | schema (self) |
def | setup (self, kwargs) |
def | new_reader (self, kwargs) |
Public Member Functions inherited from caffe2.python.dataio.ReaderBuilder | |
def | schema (self) |
def | setup (self, kwargs) |
def | new_reader (self, kwargs) |
ReaderBuilder that modifies underlying builder by calling `piper` function on each new reader produced, and return the result of the function. This way, it is possible to append data processing pipelines that will be replicated for each reader that gets created. E.g.: PipedReaderBuilder( ReaderBuilder(...), lambda reader: pipe(reader, processor=my_proc))