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 splits (self, net)
 
def new_reader (self, split_reader=None, kwargs)
 
- Public Member Functions inherited from caffe2.python.dataio.ReaderBuilder
def schema (self)
 
def splits (self, net)
 
def new_reader (self, split_reader=None, 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 236 of file dataio.py.


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