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

Public Member Functions

def __init__ (self, names, readers)
 
def setup_ex (self, init_net, finish_net)
 
def read_ex (self, local_init_net, local_finish_net)
 
def reset (self, net)
 
- Public Member Functions inherited from caffe2.python.dataio.Reader
def __init__ (self, schema=None)
 
def schema (self)
 
def setup_ex (self, init_net, finish_net)
 
def read_ex (self, local_init_net, local_finish_net)
 
def read_record_ex (self, local_init_net, local_finish_net)
 
def read (self, read_net)
 
def reset (self, net)
 
def read_record (self, read_net)
 
def execution_step (self, reader_net_name=None, external_should_stop=None)
 

Detailed Description

Base class for a reader that wrap multiple readers, e.g., reading from
multiple sources simultaneously.

Definition at line 519 of file dataio.py.

Constructor & Destructor Documentation

def caffe2.python.dataio.CompositeReader.__init__ (   self,
  names,
  readers 
)
Args:
    names: list[str] names of readers; used as schema keys
    readers: list[Reader] Reader instances, must have schema

Definition at line 524 of file dataio.py.

Member Function Documentation

def caffe2.python.dataio.CompositeReader.read_ex (   self,
  local_init_net,
  local_finish_net 
)
Stops when one of the reader finished

Definition at line 541 of file dataio.py.


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