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

Function store_weight

src/models/citrinet_asr/runtime.cpp:95–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93};
94
95core::TensorValue store_weight(
96 core::BackendWeightStore & store,
97 const assets::TensorSource & source,
98 const Conv1dWeights & tensor,
99 assets::TensorStorageType storage_type) {
100 return store.load_tensor_as_shape(
101 source,
102 tensor.weight_name,
103 storage_type,
104 tensor.weight_source_shape,
105 core::TensorShape::from_dims({tensor.out_channels, tensor.in_channels / tensor.groups, tensor.kernel}));
106}
107
108BackendConv1dWeights make_backend_conv(
109 core::BackendWeightStore & store,

Callers 1

make_backend_convFunction · 0.70

Calls 1

load_tensor_as_shapeMethod · 0.80

Tested by

no test coverage detected