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

Method is_stack_last

cake-core/src/models/luxtts/config.rs:121–124  ·  view source on GitHub ↗

Check if a flat layer index is the last layer of its stack.

(&self, flat_idx: usize)

Source from the content-addressed store, hash-verified

119
120 /// Check if a flat layer index is the last layer of its stack.
121 pub fn is_stack_last(&self, flat_idx: usize) -> bool {
122 let (stack_idx, layer_in_stack) = self.flat_to_stack(flat_idx);
123 layer_in_stack == self.model.fm_decoder_num_layers[stack_idx] - 1
124 }
125}
126
127fn default_ff_dim() -> usize { 1536 }

Callers

nothing calls this directly

Calls 1

flat_to_stackMethod · 0.80

Tested by

no test coverage detected