MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / cast

Method cast

external/ggml/src/gguf.cpp:205–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203 }
204
205 void cast(const enum gguf_type new_type) {
206 const size_t new_type_size = gguf_type_size(new_type);
207 GGML_ASSERT(data.size() % new_type_size == 0);
208 type = new_type;
209 }
210};
211
212struct gguf_tensor_info {

Callers 3

gguf_set_arr_dataFunction · 0.80
__get_floatsFunction · 0.80
__set_floatsFunction · 0.80

Calls 2

gguf_type_sizeFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected