Caffe2 - Python API
A deep learning, cross platform ML framework
Public Member Functions | List of all members
caffe2.python.dataio.PipedReaderBuilder Class Reference
Inheritance diagram for caffe2.python.dataio.PipedReaderBuilder:
caffe2.python.dataio.ReaderBuilder

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)
 

Detailed Description

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))

Definition at line 226 of file dataio.py.


The documentation for this class was generated from the following file: