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

Function make_cache

cake-core/tests/unit_tests/helpers.rs:215–217  ·  view source on GitHub ↗

Create a Cache for testing.

(cfg: &Config)

Source from the content-addressed store, hash-verified

213
214/// Create a Cache for testing.
215pub fn make_cache(cfg: &Config) -> Cache {
216 Cache::new(true, DType::F32, cfg, &Device::Cpu).unwrap()
217}

Calls

no outgoing calls

Tested by

no test coverage detected