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

Method check

src/plugin/impl/var_value_checker.cpp:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void VarValueChecker::Checker::check(VarNode* var) {
25 setup_inp(var);
26 m_func->clear_device_memory(); // because input dev tensor always changes
27 m_func->execute().wait();
28}
29
30void VarValueChecker::Checker::setup_inp(VarNode* var) {
31 auto&& val = var->dev_tensor();

Callers 1

on_var_computedMethod · 0.45

Calls 3

clear_device_memoryMethod · 0.45
waitMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected