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

Method add_optional_model_file

src/framework/assets/resource_bundle.cpp:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 add_file(std::move(id), path);
45 auto [it, inserted] = tensor_resources_.emplace(
46 key,
47 TensorResource{
48 std::filesystem::weakly_canonical(path),
49 std::move(tensor_prefix),
50 });
51 if (!inserted) {
52 throw std::runtime_error("duplicate asset tensor resource id: " + it->first);
53 }
54}
55
56void ResourceBundle::add_model_file(std::string id, const std::filesystem::path & relative_path) {

Callers

nothing calls this directly

Calls 2

resolve_model_fileFunction · 0.85
is_existing_fileFunction · 0.85

Tested by

no test coverage detected