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

Method set_conv_state

cake-core/src/models/common/cache.rs:236–238  ·  view source on GitHub ↗

Set the conv state for a linear attention layer.

(&mut self, block_idx: usize, state: Tensor)

Source from the content-addressed store, hash-verified

234
235 /// Set the conv state for a linear attention layer.
236 pub fn set_conv_state(&mut self, block_idx: usize, state: Tensor) {
237 self.conv_states[block_idx] = Some(state);
238 }
239
240 /// Return a copy of this cache with the same state but new kv table.
241 pub fn as_new(&self) -> Self {

Callers 3

cache_conv_state_set_getFunction · 0.80
forwardMethod · 0.80

Calls

no outgoing calls

Tested by 1