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

Class BypassModule

cake-core/src/models/luxtts/model.rs:33–35  ·  view source on GitHub ↗

BypassModule: combines original (pre-downsample) with processed (upsampled) output. `output = bypass_scale * src_orig + (1 - bypass_scale) * processed`

Source from the content-addressed store, hash-verified

31/// BypassModule: combines original (pre-downsample) with processed (upsampled) output.
32/// `output = bypass_scale * src_orig + (1 - bypass_scale) * processed`
33struct BypassModule {
34 bypass_scale: Tensor, // [dim]
35}
36
37impl BypassModule {
38 fn load(dim: usize, vb: VarBuilder) -> Result<Self> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected