|
| AsyncNetBase (const std::shared_ptr< const NetDef > &net_def, Workspace *ws) |
|
bool | SupportsAsync () override |
|
vector< OperatorBase * > | GetOperators () const override |
|
bool | RunAsync () override |
|
const dag_utils::ExecutionChains & | TEST_execution_chains () const |
|
ProfDAGProtos | GetOperatorStats () const |
|
ProfDAGProtos | GetPerOperatorCost () const |
|
ProfDAGReport | GetProfReport () const |
|
| NetBase (const std::shared_ptr< const NetDef > &net_def, Workspace *ws) |
|
const vector< const Event * > & | events () const |
|
virtual void | Wait () |
|
virtual bool | Run () |
|
virtual vector< float > | TEST_Benchmark (const int, const int, const bool) |
| Benchmarks a network. More...
|
|
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 | canSchedule (int chain_id, const std::vector< EventStatus > *status=nullptr, bool *parent_failed=nullptr) |
|
bool | canSchedule (int parent_id, int child_id) |
|
int | tasksNum () const |
|
Event & | event (int task_id) const |
|
EventStatus | query (int task_id) const |
|
const std::vector< int > & | children (int task_id) const |
|
const std::vector< int > & | parents (int task_id) const |
|
int | updateParentCount (int child_id) |
|
int | getParentCount (int child_id) |
|
bool | testAndSetScheduled (int task_id) |
|
int | numOps (int task_id) const |
|
int | firstTaskOpId (int task_id) const |
|
int | lastTaskOpId (int task_id) const |
|
const OperatorBase * | firstTaskOp (int task_id) const |
|
const OperatorBase * | lastTaskOp (int task_id) const |
|
OperatorBase * | firstTaskOp (int task_id) |
|
OperatorBase * | lastTaskOp (int task_id) |
|
void | asyncWait (int task_id, int stream_id, const std::vector< int > &wait_task_ids) const |
|
bool | run (int task_id, int stream_id) noexcept |
|
int | stream (int task_id) |
|
TaskThreadPoolBase * | pool (const DeviceOption &device_option) |
|
TaskThreadPoolBase * | pool () |
|
void | finishTasks (const std::unordered_set< int > &task_ids) |
|
void | finalizeEvents () |
|
bool | isStreamFree (int task_id, int stream_id) const |
|
virtual void | reset () |
|
bool | handleRunError () override |
|
void | handleChainError (int task_id, OperatorBase *op, const char *err_msg, bool save_exception=false) noexcept |
|
| C10_DISABLE_COPY_AND_ASSIGN (AsyncNetBase) |
|
virtual bool | DoRunAsync () |
|
| C10_DISABLE_COPY_AND_ASSIGN (NetBase) |
|
Definition at line 58 of file net_async_base.h.