| 239 | } |
| 240 | |
| 241 | std::shared_ptr<const CitrinetWeights> require_weights(std::shared_ptr<const CitrinetWeights> weights) { |
| 242 | if (weights == nullptr) { |
| 243 | throw std::runtime_error("Citrinet runtime requires weights"); |
| 244 | } |
| 245 | return weights; |
| 246 | } |
| 247 | |
| 248 | core::TensorValue conv1d( |
| 249 | core::ModuleBuildContext & ctx, |