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

Method require_tensor

src/framework/assets/tensor_source.cpp:453–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451private:
452 const engine::io::SafeTensorInfo * find_info(std::string_view name) const noexcept {
453 const auto it = index_.tensors.find(std::string(name));
454 if (it == index_.tensors.end()) {
455 return nullptr;
456 }
457 return &it->second;
458 }
459
460 std::pair<const std::byte *, size_t> require_data_range(const engine::io::SafeTensorInfo & info) const {
461 if (bytes_.empty()) {

Callers 5

require_tensorFunction · 0.80
load_talker_weightsFunction · 0.80
bind_qkv_linearFunction · 0.80
require_t3_tensor_dataFunction · 0.80

Calls 10

shape_from_dimsFunction · 0.85
validate_expected_shapeFunction · 0.85
decode_tensor_data_f32Function · 0.85
encode_f32_tensor_dataFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected