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

Public Member Functions

def __init__ (self, db_path, db_type, name=None, batch_size=100, loop_over=False, field_names=None)
def setup_ex (self, init_net, finish_net)
def read (self, read_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)

Public Attributes


Static Public Attributes

string default_name_suffix = 'db_file_reader'

Detailed Description

Definition at line 16 of file

Member Function Documentation

def caffe2.python.db_file_reader.DBFileReader.setup_ex (   self,
From the Dataset, create a _DatasetReader and setup a init_net.

Make sure the _init_field_blobs_as_empty(...) is only called once.

Because the underlying NewRecord(...) creats blobs by calling
NextScopedBlob(...), so that references to previously-initiated
empty blobs will be lost, causing accessibility issue.

Definition at line 126 of file

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