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

Method new

flow-rs/src/graph/node.rs:24–30  ·  view source on GitHub ↗
(local_key: u64, mut info: config::Node, extra_args: Table)

Source from the content-addressed store, hash-verified

22
23impl AnyNode {
24 pub fn new(local_key: u64, mut info: config::Node, extra_args: Table) -> Result<AnyNode> {
25 info.entity.args = merge_table(extra_args, info.entity.args);
26 Ok(AnyNode {
27 nodes: crate::node::load_static(local_key, &info)?,
28 info,
29 })
30 }
31
32 #[allow(dead_code)]
33 pub fn first(&self) -> &dyn Actor {

Callers

nothing calls this directly

Calls 2

merge_tableFunction · 0.85
load_staticFunction · 0.85

Tested by

no test coverage detected