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

Function fused_stable_softplus_gpu

cake-core/benches/bench_utils.rs:103–108  ·  view source on GitHub ↗
(bencher: divan::Bencher, hidden: usize)

Source from the content-addressed store, hash-verified

101
102#[divan::bench(args = [1024, 4096, 16384])]
103fn fused_stable_softplus_gpu(bencher: divan::Bencher, hidden: usize) {
104 let dev = gpu_device();
105 let x = make_gpu_tensor(&[1, 64, hidden], 260);
106 let backend = cake_core::backends::create_backend(&dev);
107 bencher.bench_local(|| backend.stable_softplus(&x).unwrap());
108}
109
110#[divan::bench(args = [1024, 4096, 16384])]
111fn fused_rms_norm_gated_gpu(bencher: divan::Bencher, hidden: usize) {

Callers

nothing calls this directly

Calls 4

gpu_deviceFunction · 0.85
make_gpu_tensorFunction · 0.85
create_backendFunction · 0.85
stable_softplusMethod · 0.45

Tested by

no test coverage detected