| 1383 | } |
| 1384 | |
| 1385 | bool StaticInferManagerImpl::SubgraphStaticInferHelperImpl::call_register_for_value( |
| 1386 | Tag dest, const ValueInferDesc& desc, RegisterHelperPtr helper) { |
| 1387 | mgb_assert(desc.src_type == SourceType::DEP); |
| 1388 | |
| 1389 | auto callback = [&](StaticInferManagerImpl& mgr, SourceType src_type, |
| 1390 | const TagTraitArray& deps) -> TagTraitBase* { |
| 1391 | using namespace std::placeholders; |
| 1392 | auto f = std::bind( |
| 1393 | &SubgraphStaticInferHelperImpl::infer_value_raw, deps, desc.infer_func, |
| 1394 | _1, _2); |
| 1395 | |
| 1396 | mgr.register_value_infer(dest, {src_type, {}, f}); |
| 1397 | return mgr.get_tag_trait_container(dest).value; |
| 1398 | }; |
| 1399 | |
| 1400 | return (this->*helper)(dest, desc.deps, callback); |
| 1401 | } |
| 1402 | |
| 1403 | InpVal StaticInferManagerImpl::SubgraphStaticInferHelperImpl::prepare_inp_val( |
| 1404 | const TagTraitArray& deps) { |
nothing calls this directly
no test coverage detected