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

Method forward_mut

cake-core/src/models/sd/unet.rs:66–74  ·  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

64 }
65
66 async fn forward_mut(
67 &mut self,
68 x: &Tensor,
69 index_pos: usize,
70 block_idx: usize,
71 ctx: &mut Context,
72 ) -> anyhow::Result<Tensor> {
73 self.forward(x, index_pos, block_idx, ctx).await
74 }
75
76 fn layer_name(&self) -> &str {
77 "unet"

Callers 1

forward_unpackedMethod · 0.45

Calls 1

forwardMethod · 0.45

Tested by

no test coverage detected