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

Function quantizer_basis

src/models/miocodec/weights.cpp:124–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124std::vector<int64_t> quantizer_basis(const std::vector<int> & levels) {
125 std::vector<int64_t> basis(levels.size(), 1);
126 for (size_t index = 1; index < levels.size(); ++index) {
127 basis[index] = basis[index - 1] * levels[index - 1];
128 }
129 return basis;
130}
131
132MioCodecContentTokenEmbeddingTable build_content_token_embedding_table(
133 const engine::assets::TensorSource & source,

Callers 1

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected