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

Function require_vector_shape

src/framework/sampling/diffusion_math.cpp:16–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void require_vector_shape(size_t size, int64_t frames, int64_t channels, const char * message) {
17 if (frames <= 0 || channels <= 0 || size != static_cast<size_t>(frames * channels)) {
18 throw std::runtime_error(message);
19 }
20}
21
22} // namespace
23

Callers 2

apg_guidanceFunction · 0.85
adg_guidanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected