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

Method sleep

src/opr/impl/utility.cpp:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void Sleep::sleep(const CompNode& node, double seconds) {
60 node.activate();
61 auto opr = intl::get_megdnn_handle(node)->create_operator<megdnn::Sleep>();
62 opr->param().time = seconds;
63 opr->exec();
64}
65
66Sleep::Sleep(VarNode* node, double seconds, Type type, const OperatorNodeConfig& config)
67 : Super(node->owner_graph(), config, "sleep", {node}),

Callers 9

waitMethod · 0.80
connectMethod · 0.80
get_mm_server_portMethod · 0.80
group_barrierMethod · 0.80
__iter__Method · 0.80
applyMethod · 0.80
__iter__Method · 0.80
applyMethod · 0.80
__iter__Method · 0.80

Calls 3

activateMethod · 0.45
paramMethod · 0.45
execMethod · 0.45

Tested by 5

__iter__Method · 0.64
applyMethod · 0.64
__iter__Method · 0.64
applyMethod · 0.64
__iter__Method · 0.64