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

Function require_shape_equal

tests/unittests/test_audio_dsp.cpp:74–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 if (!condition) {
73 throw std::runtime_error(message);
74 }
75}
76
77void require_shape_equal(
78 const std::vector<int64_t> & actual,
79 const std::vector<int64_t> & expected,
80 const std::string & label) {
81 if (actual != expected) {
82 std::ostringstream oss;
83 oss << label << " shape mismatch";
84 throw std::runtime_error(oss.str());
85 }
86}

Calls 1

strMethod · 0.80

Tested by

no test coverage detected