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

Method var_receiver_info

src/core/impl/graph/eager_eval.cpp:349–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349const ComputingGraph::VarReceiverInfo* EagerEvalManager::var_receiver_info(
350 const VarNode* var) const {
351 if (enabled()) {
352 // a fake info that requires the value and also allows empty shape
353 static ComputingGraph::VarReceiverInfo ret = {
354 .nr_direct_comp_req = 1,
355 .dev_value = 1,
356 .last_dev_value_reader = nullptr,
357 .shape = 1,
358 .host_value = 1,
359 .allow_empty_value = 2};
360 return &ret;
361 }
362 return nullptr;
363}
364
365GraphExecutable::ExecEnv* EagerEvalManager::exec_env() {
366 if (enabled()) {

Callers 1

cg_impl.cppFile · 0.45

Calls 1

enabledFunction · 0.50

Tested by

no test coverage detected