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

Function require_tensor

src/framework/modules/wavlm_encoder.cpp:85–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85core::TensorValue require_tensor(const WavlmEncoderWeights & weights, const std::string & name) {
86 const auto it = weights.tensors.find(name);
87 if (it == weights.tensors.end()) {
88 throw std::runtime_error("WavLM missing tensor: " + name);
89 }
90 return it->second;
91}
92
93NormWeights norm_weights(const WavlmEncoderWeights & weights, const std::string & prefix) {
94 return NormWeights{

Callers 5

norm_weightsFunction · 0.70
linear_weightsFunction · 0.70
conv1d_weightsFunction · 0.70
set_backend_tensorMethod · 0.50

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected