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

Function backend

cake-core/tests/unit_tests/test_backend_ops.rs:6–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4use cake_core::backends::{create_backend, ComputeBackend};
5
6fn backend() -> std::sync::Arc<dyn ComputeBackend> {
7 create_backend(&Device::Cpu)
8}
9
10fn assert_close(a: &Tensor, b: &Tensor, tol: f32) {
11 let diff = (a - b).unwrap().abs().unwrap();

Calls 1

create_backendFunction · 0.85

Tested by

no test coverage detected