MCPcopy Create free account
hub / github.com/evilsocket/cake / make_node

Function make_node

cake-core/src/utils/split.rs:241–252  ·  view source on GitHub ↗
(layers: Vec<&str>)

Source from the content-addressed store, hash-verified

239 use std::fs;
240
241 fn make_node(layers: Vec<&str>) -> Node {
242 Node {
243 host: "test:10128".to_string(),
244 description: None,
245 layers: layers.into_iter().map(|s| s.to_string()).collect(),
246 vram_bytes: 0,
247 tflops: 0.0,
248 backend: String::new(),
249 hostname: String::new(),
250 os: String::new(),
251 }
252 }
253
254 #[test]
255 fn load_index_from_json_file() {

Calls

no outgoing calls