Caffe2 - Python API
A deep learning, cross platform ML framework
Public Member Functions | Public Attributes | List of all members
core.BlobReference Class Reference
Inheritance diagram for 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)
 

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 115 of file core.py.

Constructor & Destructor Documentation

◆ __init__()

def 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 123 of file core.py.

Member Function Documentation

◆ __getattr__()

def 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 182 of file core.py.


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