| 199 | } |
| 200 | |
| 201 | modules::LinearWeights load_linear( |
| 202 | core::BackendWeightStore & store, |
| 203 | const assets::TensorSource & source, |
| 204 | const std::string & prefix, |
| 205 | int64_t in_features, |
| 206 | int64_t out_features, |
| 207 | assets::TensorStorageType weight_storage_type) { |
| 208 | modules::LinearWeights weights; |
| 209 | weights.weight = store.load_tensor(source, prefix + ".weight", weight_storage_type, {out_features, in_features}); |
| 210 | weights.bias = store.load_tensor(source, prefix + ".bias", assets::TensorStorageType::F32, {out_features}); |
| 211 | return weights; |
| 212 | } |
| 213 | |
| 214 | VibeVoiceTokenizerBlockWeights load_block( |
| 215 | core::BackendWeightStore & store, |
no test coverage detected