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

Function f16_bytes

src/framework/assets/tensor_source.cpp:83–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 std::string out(value);
82 for (char & ch : out) {
83 ch = static_cast<char>(std::tolower(static_cast<unsigned char>(ch)));
84 }
85 return out;
86}
87
88bool raw_dtype_matches_ggml_type(std::string_view dtype, ggml_type type) {
89 const std::string normalized = lower_ascii(dtype);
90 return (normalized == "f32" && type == GGML_TYPE_F32) ||
91 (normalized == "f16" && type == GGML_TYPE_F16) ||
92 (normalized == "bf16" && type == GGML_TYPE_BF16) ||

Callers 2

encode_f32_tensor_dataFunction · 0.85

Calls 3

ggml_fp32_to_fp16_rowFunction · 0.85
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected