| 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 | |
| 56 | void ResourceBundle::add_model_file(std::string id, const std::filesystem::path & relative_path) { |
nothing calls this directly
no test coverage detected