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

Method new

flow-rs/src/lib.rs:76–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74
75impl Builder {
76 pub fn new() -> Self {
77 let local_key = LOCAL_KEY.fetch_add(1, Ordering::Relaxed);
78 registry::initialize(local_key);
79 Builder {
80 local_key,
81 template: Default::default(),
82 dynamic: Default::default(),
83 }
84 }
85
86 pub fn load_plugins(self, cfg: loader::LoaderConfig) -> Self {
87 loader::load(self.local_key, &cfg).unwrap();

Callers

nothing calls this directly

Calls 1

initializeFunction · 0.85

Tested by

no test coverage detected