|
| SimpleNet (const std::shared_ptr< const NetDef > &net_def, Workspace *ws) |
|
bool | SupportsAsync () override |
|
vector< float > | TEST_Benchmark (const int warmup_runs, const int main_runs, const bool run_individual) override |
| Benchmarks a network. More...
|
|
vector< OperatorBase * > | GetOperators () const override |
|
| NetBase (const std::shared_ptr< const NetDef > &net_def, Workspace *ws) |
|
const vector< const Event * > & | events () const |
|
virtual void | Wait () |
|
const vector< string > & | external_output () const |
|
const vector< string > & | external_input () const |
|
const string & | Name () const |
|
const NetDef & | debug_def () const |
|
bool | has_debug_def () const |
|
| Observable (Observable &&)=default |
|
Observable & | operator= (Observable &&)=default |
|
| C10_DISABLE_COPY_AND_ASSIGN (Observable) |
|
const Observer * | AttachObserver (std::unique_ptr< Observer > observer) |
|
std::unique_ptr< Observer > | DetachObserver (const Observer *observer_ptr) |
| Returns a unique_ptr to the removed observer. More...
|
|
virtual size_t | NumObservers () |
|
void | StartAllObservers () |
|
void | StopAllObservers () |
|
|
bool | Run () override |
|
bool | RunAsync () override |
|
| C10_DISABLE_COPY_AND_ASSIGN (SimpleNet) |
|
virtual bool | DoRunAsync () |
|
virtual bool | handleRunError () |
|
| C10_DISABLE_COPY_AND_ASSIGN (NetBase) |
|
|
vector< unique_ptr< OperatorBase > > | operators_ |
|
vector< string > | external_input_ |
|
vector< string > | external_output_ |
|
string | name_ |
|
vector< const Event * > | events_ |
|
std::shared_ptr< const NetDef > | net_def_ |
|
std::vector< std::unique_ptr< Observer > > | observers_list_ |
|
Definition at line 19 of file net_simple.h.
vector< float > caffe2::SimpleNet::TEST_Benchmark |
( |
const int |
warmup_runs, |
|
|
const int |
main_runs, |
|
|
const bool |
run_individual |
|
) |
| |
|
overridevirtual |
Benchmarks a network.
This function returns a vector of float recording the number of milli- seconds spent during the benchmark. The 0-th item is the time spent per each network run, and if a net instantiation supports run_individual, the remainder of the vector returns the number of milliseconds spent per opeartor.
Reimplemented from caffe2::NetBase.
Definition at line 87 of file net_simple.cc.
The documentation for this class was generated from the following files: