| 313 | |
| 314 | template <typename L> |
| 315 | void setSparseWeights(L& l, int32_t k, int32_t trs, std::vector<int8_t>& sparseWeights) |
| 316 | { |
| 317 | auto weights = l.getKernelWeights(); |
| 318 | sparsify(weights, k, trs, sparseWeights); |
| 319 | weights.values = sparseWeights.data(); |
| 320 | l.setKernelWeights(weights); |
| 321 | } |
| 322 | |
| 323 | // Explicit instantiation |
| 324 | template void setSparseWeights<IConvolutionLayer>( |
no test coverage detected