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

Method require_tensor_name

src/framework/assets/tensor_source.cpp:570–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

568 shape_cursor + static_cast<size_t>(tensor_rank) > gguf_get_arr_n(gguf, shapes_key)) {
569 throw std::runtime_error("GGUF contains invalid exact tensor dimensions");
570 }
571 if (tensor_rank > 0) {
572 info.shape.assign(shapes + shape_cursor, shapes + shape_cursor + tensor_rank);
573 } else {
574 info.shape.clear();
575 }
576 shape_cursor += static_cast<size_t>(tensor_rank);
577 } else {
578 const int dimensions = ggml_n_dims(tensor);
579 info.shape.reserve(static_cast<size_t>(dimensions));
580 for (int dim = dimensions - 1; dim >= 0; --dim) {

Callers 3

require_lm_head_nameFunction · 0.80
validate_weight_anchorsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected