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

Method as_slice

cake-core/src/utils/tensor_storage.rs:136–138  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

134 }
135
136 fn as_slice(&self) -> &[usize] {
137 &self.dims[..self.ndim as usize]
138 }
139
140 fn to_vec(self) -> Vec<usize> {
141 self.as_slice().to_vec()

Callers 15

zstd_compress_chunkFunction · 0.80
zstd_decompress_chunkFunction · 0.80
to_vecMethod · 0.80
tensor_bytesMethod · 0.80
tensor_metaMethod · 0.80
tensor_slice_bytesMethod · 0.80
receive_model_dataFunction · 0.80
embeddingMethod · 0.80
topkMethod · 0.80

Calls

no outgoing calls