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

Method write_tensor_meta

external/ggml/src/gguf.cpp:1368–1379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1366 for (size_t i = 0; i < ne; ++i) {
1367 write(kv.get_val<std::string>(i));
1368 }
1369 } break;
1370 case GGUF_TYPE_ARRAY:
1371 default: GGML_ABORT("invalid type");
1372 }
1373 }
1374
1375 void write_tensor_meta(const struct gguf_tensor_info & info) {
1376 write(info.t.name);
1377
1378 const uint32_t n_dims = ggml_n_dims(&info.t);
1379 write(n_dims);
1380
1381 for (uint32_t j = 0; j < n_dims; ++j) {
1382 write(info.t.ne[j]);

Callers 1

gguf_write_outFunction · 0.80

Calls 1

ggml_n_dimsFunction · 0.85

Tested by

no test coverage detected