Caffe2 - Python API
A deep learning, cross platform ML framework
Public Member Functions | List of all members
text_file_reader.TextFileReader Class Reference
Inheritance diagram for text_file_reader.TextFileReader:

Public Member Functions

def __init__ (self, init_net, filename, schema, num_passes=1, batch_size=1)
 
def read (self, net)
 

Detailed Description

Wrapper around operators for reading from text files.

Definition at line 12 of file text_file_reader.py.

Constructor & Destructor Documentation

◆ __init__()

def text_file_reader.TextFileReader.__init__ (   self,
  init_net,
  filename,
  schema,
  num_passes = 1,
  batch_size = 1 
)
Create op for building a TextFileReader instance in the workspace.

Args:
    init_net   : Net that will be run only once at startup.
    filename   : Path to file to read from.
    schema     : schema.Struct representing the schema of the data.
         Currently, only support Struct of strings.
    num_passes : Number of passes over the data.
    batch_size : Number of rows to read at a time.

Definition at line 16 of file text_file_reader.py.

Member Function Documentation

◆ read()

def text_file_reader.TextFileReader.read (   self,
  net 
)
Create op for reading a batch of rows.

Definition at line 42 of file text_file_reader.py.


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