| 98 | } |
| 99 | |
| 100 | void 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 | |
| 106 | bool has_suffix(const std::string & value, const char * suffix) { |
| 107 | const std::string_view tail(suffix); |
no outgoing calls
no test coverage detected