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

Method forward_mut

cake-core/src/models/flux/vae.rs:97–105  ·  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

95 }
96
97 async fn forward_mut(
98 &mut self,
99 x: &Tensor,
100 index_pos: usize,
101 block_idx: usize,
102 ctx: &mut Context,
103 ) -> anyhow::Result<Tensor> {
104 self.forward(x, index_pos, block_idx, ctx).await
105 }
106
107 fn layer_name(&self) -> &str {
108 "flux_vae"

Callers 2

generate_imageMethod · 0.45
decodeMethod · 0.45

Calls 1

forwardMethod · 0.45

Tested by

no test coverage detected