MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / add_task

Method add_task

imperative/python/src/helper.h:96–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94public:
95 template <typename T>
96 void add_task(T&& task) {
97 // CPython never dlclose an extension so
98 // finalized means the interpreter has been shutdown
99 if (!finalized) {
100 queue.add_task(std::forward<T>(task));
101 }
102 }
103 void wait_all_task_finish() { queue.wait_all_task_finish(); }
104 ~PyTaskDipatcher() {
105 finalized = true;

Callers 14

init_graph_rtFunction · 0.45
py_log_handlerMethod · 0.45
deleterMethod · 0.45
put_implMethod · 0.45
del_implMethod · 0.45
dropMethod · 0.45
dispatch_kernelMethod · 0.45
set_optionMethod · 0.45
wait_tensorMethod · 0.45
start_profileMethod · 0.45
stop_profileMethod · 0.45
stop_stepMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected