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

Method forward_mut

cake-core/src/models/sd/vae.rs:72–80  ·  view source on GitHub ↗
(
        &mut self,
        x: &Tensor,
        index_pos: usize,
        block_idx: usize,
        ctx: &mut Context,
    )

Source from the content-addressed store, hash-verified

70 }
71
72 async fn forward_mut(
73 &mut self,
74 x: &Tensor,
75 index_pos: usize,
76 block_idx: usize,
77 ctx: &mut Context,
78 ) -> anyhow::Result<Tensor> {
79 self.forward(x, index_pos, block_idx, ctx).await
80 }
81
82 fn layer_name(&self) -> &str {
83 "vae"

Callers 5

text_embeddingsMethod · 0.45
encodeMethod · 0.45
decodeMethod · 0.45
forward_layersMethod · 0.45
forward_lmMethod · 0.45

Calls 1

forwardMethod · 0.45

Tested by

no test coverage detected