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

Function require_same_size

src/framework/sampling/diffusion_math.cpp:10–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace {
9
10void require_same_size(size_t lhs, size_t rhs, const char * message) {
11 if (lhs != rhs) {
12 throw std::runtime_error(message);
13 }
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)) {

Callers 8

cfg_guidanceFunction · 0.85
apg_guidanceFunction · 0.85
adg_guidanceFunction · 0.85
clamp_velocity_normFunction · 0.85
renoiseFunction · 0.85
heun_combine_velocityFunction · 0.85
blend_by_mask_in_placeFunction · 0.85
repaint_step_injectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected