Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_chunk
Function · 0.80
zstd_decompress_chunk
Function · 0.80
model_data_chunk_roundtrip_compressed
Function · 0.80
to_vec
Method · 0.80
parse_shard_header_mmap
Method · 0.80
tensor_bytes
Method · 0.80
tensor_meta
Method · 0.80
tensor_slice_bytes
Method · 0.80
receive_model_data
Function · 0.80
test_message_model_data_chunk_compressed_roundtrip
Function · 0.80
embedding
Method · 0.80
topk
Method · 0.80
Calls
no outgoing calls
Tested by
1
test_message_model_data_chunk_compressed_roundtrip
Function · 0.64