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

Public Member Functions

def __init__ (self, values, lengths_blob=None)
 
def field_names (self)
 
def field_types (self)
 
def field_metadata (self)
 
def field_blobs (self)
 
def all_scalars (self)
 
def has_blobs (self)
 
def clone (self, keep_blobs=True)
 
def __getattr__ (self, item)
 
def __getitem__ (self, item)
 
- Public Member Functions inherited from caffe2.python.schema.Field
def __init__ (self, children)
 
def clone_schema (self)
 
def field_names (self)
 
def field_types (self)
 
def field_metadata (self)
 
def field_blobs (self)
 
def all_scalars (self)
 
def has_blobs (self)
 
def clone (self, keep_blobs=True)
 
def slice (self)
 
def __eq__ (self, other)
 
def __repr__ (self)
 

Public Attributes

 lengths
 

Detailed Description

Represents a variable-length list.

Values of a list can also be complex fields such as Lists and Structs.
In addition to the fields exposed by its `values` field, a List exposes an
additional `lengths` field, which will contain the size of each list under
the parent domain.

Definition at line 198 of file schema.py.

Member Function Documentation

def caffe2.python.schema.List.__getattr__ (   self,
  item 
)
If the value of this list is a struct,
allow to introspect directly into its fields.

Definition at line 253 of file schema.py.


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