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

Class EncoderBlock

cake-core/src/models/vibevoice/vae_encoder.rs:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18/// Identical architecture to DecoderBlock in vae_decoder.rs.
19#[derive(Debug, Clone)]
20struct EncoderBlock {
21 norm_weight: Tensor,
22 ffn_norm_weight: Tensor,
23 eps: f32,
24 gamma: Tensor,
25 mixer_weight: Tensor,
26 mixer_bias: Tensor,
27 ffn_gamma: Tensor,
28 ffn_linear1_weight: Tensor,
29 ffn_linear1_bias: Option<Tensor>,
30 ffn_linear2_weight: Tensor,
31 ffn_linear2_bias: Option<Tensor>,
32 backend: Arc<dyn ComputeBackend>,
33}
34
35impl EncoderBlock {
36 fn load(vb: VarBuilder, channels: usize, eps: f64, backend: Arc<dyn ComputeBackend>) -> Result<Self> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected