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

Public Member Functions

def __init__ (self, name, net=None)
 
def __hash__ (self)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 
def __str__ (self)
 
def __repr__ (self)
 
def __add__ (self, other)
 
def __radd__ (self, other)
 
def Net (self)
 
def GetNameScope (self)
 
def __getattr__ (self, op_type)
 
def __dir__ (self)
 

Public Attributes

 meta
 

Detailed Description

A wrapper around a blob in a net.

BlobReference gives us a way to refer to the network that the blob is
generated from. Note that blobs are, essentially, just strings in the
current workspace.

Definition at line 154 of file core.py.

Constructor & Destructor Documentation

def caffe2.python.core.BlobReference.__init__ (   self,
  name,
  net = None 
)
Initializes a blob reference.

Note that this does not prepends the namescope. If needed, use
ScopedBlobReference() to prepend the existing namespace.

Definition at line 162 of file core.py.

Member Function Documentation

def caffe2.python.core.BlobReference.__getattr__ (   self,
  op_type 
)
A wrapper allowing one to initiate operators from a blob reference.

Example: for a blob reference b that comes from network n, doing
    b.Relu(...)
is equivalent to doing
    net.Relu([b], ...)

Definition at line 228 of file core.py.


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