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

Function require_shape

src/framework/audio/zipenhancer.cpp:100–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void require_shape(const Param & p, const std::vector<int64_t> & shape, const std::string & name) {
101 if (p.shape != shape) {
102 throw std::runtime_error("ZipEnhancer tensor shape mismatch: " + name);
103 }
104}
105
106bool has_suffix(const std::string & value, const char * suffix) {
107 const std::string_view tail(suffix);

Callers 2

graph_depthwise_conv1dFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected