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

Method input

flow-rs/src/graph/mod.rs:68–70  ·  view source on GitHub ↗

Get an input port from the graph by name

(&self, name: &str)

Source from the content-addressed store, hash-verified

66 }
67 /// Get an input port from the graph by name
68 pub fn input(&self, name: &str) -> Option<Sender> {
69 self.graph.conns.get(name).map(|x| x.get().sender())
70 }
71 /// Get an output port from the graph by name
72 pub fn output(&self, name: &str) -> Option<Receiver> {
73 self.graph.conns.get(name).map(|x| x.get().receiver())

Callers 3

test_reorderFunction · 0.45
test_bcastFunction · 0.45
test_demuxFunction · 0.45

Calls 2

senderMethod · 0.80
getMethod · 0.45

Tested by 3

test_reorderFunction · 0.36
test_bcastFunction · 0.36
test_demuxFunction · 0.36