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

Method get_conv_state

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

Get the conv state for a linear attention layer.

(&self, block_idx: usize)

Source from the content-addressed store, hash-verified

229
230 /// Get the conv state for a linear attention layer.
231 pub fn get_conv_state(&self, block_idx: usize) -> Option<&Tensor> {
232 self.conv_states[block_idx].as_ref()
233 }
234
235 /// Set the conv state for a linear attention layer.
236 pub fn set_conv_state(&mut self, block_idx: usize, state: Tensor) {

Callers 3

cache_conv_state_set_getFunction · 0.80
forwardMethod · 0.80

Calls

no outgoing calls

Tested by 1