Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions | Protected Attributes
caffe2::Operator< Context > Class Template Referenceabstract
Inheritance diagram for caffe2::Operator< Context >:
caffe2::OperatorBase

Public Member Functions

 Operator (const OperatorDef &operator_def, Workspace *ws)
 
const Tensor< Context > & Input (int idx)
 
Tensor< Context > * Output (int idx)
 
bool Run (int stream_id=0) final
 
bool RunAsync (int stream_id=0) final
 
virtual bool RunOnDevice ()=0
 
- Public Member Functions inherited from caffe2::OperatorBase
 OperatorBase (const OperatorDef &operator_def, Workspace *ws)
 
bool HasArgument (const string &name) const
 Checks if the operator has an argument of the given name.
 
template<typename T >
GetSingleArgument (const string &name, const T &default_value) const
 
template<typename T >
bool HasSingleArgumentOfType (const string &name) const
 
template<typename T >
vector< T > GetRepeatedArgument (const string &name, const vector< T > &default_value={}) const
 
template<typename T >
const T & Input (int idx)
 
template<typename T >
T * Output (int idx)
 
const BlobInputBlob (int idx)
 
BlobOutputBlob (int idx)
 
template<typename T >
bool InputIsType (int idx)
 
template<typename T >
bool OutputIsType (int idx)
 
int InputSize ()
 
int OutputSize ()
 
const vector< const Blob * > & Inputs () const
 
const vector< Blob * > & Outputs ()
 
virtual void AddRelatedBlobInfo (EnforceNotMet *err)
 
const OperatorDef & def () const
 
const ArgumentHelperarg_helper () const
 

Protected Attributes

Context context_
 

Detailed Description

template<class Context>
class caffe2::Operator< Context >

Definition at line 171 of file operator.h.


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