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

Function outputs

flow-rs/src/node/mod.rs:97–105  ·  view source on GitHub ↗
(local_key: u64, ty: &str)

Source from the content-addressed store, hash-verified

95}
96
97pub(crate) fn outputs(local_key: u64, ty: &str) -> Result<BTreeSet<String>> {
98 if let Some(node) = NodeSlice::registry_local().get(local_key).get(ty) {
99 Ok(node.info.outputs.iter().cloned().collect())
100 } else if let Some(graph) = GraphSlice::registry_local().get(local_key).get(ty) {
101 Ok(graph.info.outputs.iter().cloned().collect())
102 } else {
103 Err(anyhow!("unexpected node {}", ty))
104 }
105}

Callers 3

newMethod · 0.70
newMethod · 0.50
translate_nodeFunction · 0.50

Calls 1

getMethod · 0.45

Tested by

no test coverage detected