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

Function open_tensor_source

src/framework/assets/tensor_source.cpp:702–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700 std::vector<std::byte> raw_bytes(byte_size);
701 std::memcpy(raw_bytes.data(), data, byte_size);
702 const auto values = decode_tensor_data_f32(name, TensorData{shape, raw_type, std::move(raw_bytes)});
703 set_backend_tensor_from_f32(tensor, name, values, shape, type);
704 discard_data_range(*info);
705 }
706
707 void set_backend_f32_tensor(
708 ggml_tensor * tensor,
709 std::string_view name,
710 const std::vector<int64_t> & expected_shape) const override {

Callers 15

load_from_safetensorsMethod · 0.85
load_from_safetensorsMethod · 0.85
load_from_safetensorsMethod · 0.85
load_from_safetensorsMethod · 0.85
load_typed_weightsFunction · 0.85
open_tensor_sourceMethod · 0.85
load_from_directoryMethod · 0.85
load_from_safetensorsMethod · 0.85
load_from_directoryMethod · 0.85
load_from_directoryMethod · 0.85
load_ace_step_assetsFunction · 0.85

Calls

no outgoing calls

Tested by 4

run_caseFunction · 0.68
run_waveform_caseFunction · 0.68
run_caseFunction · 0.68
run_caseFunction · 0.68