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

Method load

cake-core/src/models/luxtts/model.rs:38–41  ·  view source on GitHub ↗
(dim: usize, vb: VarBuilder)

Source from the content-addressed store, hash-verified

36
37impl BypassModule {
38 fn load(dim: usize, vb: VarBuilder) -> Result<Self> {
39 let bypass_scale = vb.get(dim, "bypass_scale")?;
40 Ok(Self { bypass_scale })
41 }
42
43 fn forward(&self, src_orig: &Tensor, processed: &Tensor) -> Result<Tensor> {
44 // Python: output = src_orig + (processed - src_orig) * bypass_scale

Callers

nothing calls this directly

Calls 6

load_allMethod · 0.80
total_fm_layersMethod · 0.80
get_node_for_layerMethod · 0.80
getMethod · 0.45
cloneMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected