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

Public Member Functions

def __init__ (self, content)
 
def setup_ex (self, init_net, exit_net)
 
def write (self, writer_net, fields)
 
def commit (self, finish_net)
 

Public Attributes

 mutex
 

Detailed Description

Definition at line 113 of file dataset.py.

Constructor & Destructor Documentation

◆ __init__()

def dataset._DatasetWriter.__init__ (   self,
  content 
)
Don't call this directly. Use dataset.writer() instead.

Definition at line 114 of file dataset.py.

Member Function Documentation

◆ commit()

def dataset._DatasetWriter.commit (   self,
  finish_net 
)
Commit is a no-op for an in-memory dataset.

Definition at line 143 of file dataset.py.

◆ write()

def dataset._DatasetWriter.write (   self,
  writer_net,
  fields 
)
Add operations to `net` that append the blobs in `fields` to the end
of the dataset. An additional operator will also be added that checks
the consistency of the data in `fields` against the dataset schema.

Args:
    writer_net: The net that will contain the Append operators.
    fields: A list of BlobReference to be appeneded to this dataset.

Definition at line 123 of file dataset.py.


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