| 347 | } |
| 348 | |
| 349 | const 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 | |
| 365 | GraphExecutable::ExecEnv* EagerEvalManager::exec_env() { |
| 366 | if (enabled()) { |