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

Class DoubleStreamBlock

cake-core/src/models/flux/flux1_model.rs:601–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599
600#[derive(Debug, Clone)]
601pub struct DoubleStreamBlock {
602 img_mod: Modulation2,
603 img_norm1_weight: Tensor,
604 img_attn: SelfAttention,
605 img_norm2_weight: Tensor,
606 img_mlp: Mlp,
607 txt_mod: Modulation2,
608 txt_norm1_weight: Tensor,
609 txt_attn: SelfAttention,
610 txt_norm2_weight: Tensor,
611 txt_mlp: Mlp,
612 layer_norm_eps: f32,
613 backend: Arc<dyn ComputeBackend>,
614}
615
616impl DoubleStreamBlock {
617 fn new(cfg: &Config, vb: VarBuilder, backend: Arc<dyn ComputeBackend>) -> Result<Self> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected