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

Function feature_patch

src/models/voxcpm2/generator.cpp:136–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134void validate_feature_block(const std::vector<float> &features, int64_t patches,
135 int64_t patch_elems, const char *label) {
136 if (patches < 0) {
137 throw std::runtime_error(std::string("VoxCPM2 ") + label +
138 " patch count is negative");
139 }
140 if (static_cast<int64_t>(features.size()) != patches * patch_elems) {
141 throw std::runtime_error(std::string("VoxCPM2 ") + label +
142 " feature size mismatch");
143 }
144}
145

Callers 2

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected