|
|
| 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 |
| |
|
| 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 > |
| 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 Blob & | InputBlob (int idx) |
| |
|
Blob * | OutputBlob (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 ArgumentHelper & | arg_helper () const |
| |
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: