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

Function validate_raw_tensor_byte_size

src/framework/assets/tensor_source.cpp:69–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 return (normalized == "f32" && type == GGML_TYPE_F32) ||
68 (normalized == "f16" && type == GGML_TYPE_F16) ||
69 (normalized == "bf16" && type == GGML_TYPE_BF16) ||
70 (normalized == "q4_0" && type == GGML_TYPE_Q4_0) ||
71 (normalized == "q4_1" && type == GGML_TYPE_Q4_1) ||
72 (normalized == "q5_0" && type == GGML_TYPE_Q5_0) ||
73 (normalized == "q5_1" && type == GGML_TYPE_Q5_1) ||
74 (normalized == "q2_k" && type == GGML_TYPE_Q2_K) ||
75 (normalized == "q3_k" && type == GGML_TYPE_Q3_K) ||
76 (normalized == "q4_k" && type == GGML_TYPE_Q4_K) ||
77 (normalized == "q5_k" && type == GGML_TYPE_Q5_K) ||
78 (normalized == "q6_k" && type == GGML_TYPE_Q6_K) ||

Callers 3

set_backend_tensorMethod · 0.85
require_tensorMethod · 0.85

Calls 4

ggml_row_sizeFunction · 0.85
prefix_elementsMethod · 0.80
last_dimMethod · 0.80
stringFunction · 0.50

Tested by

no test coverage detected