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

Function tensor_data_to_f32

src/framework/assets/tensor_source.cpp:698–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696 }
697 const int64_t count = gguf_get_n_tensors(gguf);
698 const int64_t ranks_key = gguf_find_key(gguf, "audiocpp.tensor_ranks");
699 const int64_t shapes_key = gguf_find_key(gguf, "audiocpp.tensor_shapes");
700 const bool has_exact_shapes = ranks_key >= 0 && shapes_key >= 0;
701 if ((ranks_key >= 0) != (shapes_key >= 0) ||
702 (has_exact_shapes &&
703 (gguf_get_kv_type(gguf, ranks_key) != GGUF_TYPE_ARRAY ||

Callers 3

linear_hostFunction · 0.85

Calls 1

decode_tensor_data_f32Function · 0.85

Tested by

no test coverage detected