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


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 148 of file

Constructor & Destructor Documentation

def caffe2.python.core.BlobReference.__init__ (   self,
  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 156 of file

Member Function Documentation

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

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

Definition at line 222 of file

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