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

Function require_positive

src/framework/modules/conditioning_modules.cpp:14–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace {
13
14void require_positive(int64_t value, const char * name) {
15 if (value <= 0) {
16 throw std::runtime_error(std::string(name) + " must be positive");
17 }
18}
19
20core::TensorValue repeat_like(
21 core::ModuleBuildContext & ctx,

Calls 1

stringFunction · 0.50

Tested by

no test coverage detected