MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / global_res

Function global_res

flow-rs/src/config/insert.rs:80–91  ·  view source on GitHub ↗
(cfg: &mut interlayer::Config)

Source from the content-addressed store, hash-verified

78}
79
80pub fn global_res(cfg: &mut interlayer::Config) {
81 let global_res_names: Vec<_> = cfg.resources.keys().cloned().collect();
82 let mut visit: HashMap<_, _> = cfg
83 .graphs
84 .iter()
85 .map(|graph| (graph.name.clone(), false))
86 .collect();
87
88 for name in visit.keys().cloned().collect::<Vec<_>>() {
89 global_res_impl(name, cfg, global_res_names.as_slice(), &mut visit);
90 }
91}
92
93pub fn bcast(
94 id: &str,

Callers 1

translate_configFunction · 0.85

Calls 3

global_res_implFunction · 0.85
keysMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected