|
def | __init__ (self, reader) |
|
def | setup_ex (self, global_init_net, global_finish_net) |
|
def | read_ex (self, local_init_net, local_finish_net) |
|
def | setup_limiter (self, global_init_net, global_finish_net) |
|
def | check_limiter_condition (self, stop_condition_net) |
|
def | data_finished (self) |
|
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) |
|
Abstract Reader constrained by certain conditions.
Base class for Reader classes which check for certain conditions to stop
further processing (e.g. max number of iterations or time limit).
Also produces a boolean blob (data_finished) that can be used to see if
the reader exausted all input data (true) or stopped for another reason
(false).
Definition at line 316 of file dataio.py.
def caffe2.python.dataio.ReaderWithLimitBase.read_ex |
( |
|
self, |
|
|
|
local_init_net, |
|
|
|
local_finish_net |
|
) |
| |
Reads from an underlying Reader class, but may stop due to additional
constraints.
Build and return network(s) to read data from a Reader with
additional constraints, depending on which derived class is used.
Derived classes implement setup_limited and check_limiter_condition
which determine the nature of the constraint imposed on the reader,
e.g. iteration limits or time limit.
Args:
local_init_net: A net invoked at task instance init time (Once per
parallel thread).
local_finish_net: A net invoked at task instance cleanup time (Once
per parallel thread).
Definition at line 341 of file dataio.py.