| 76 | void ModuleImpl::updateBuffer(const std::string& name, const Tensor& tensor) { buffer_[name] = tensor; } |
| 77 | |
| 78 | ParameterFile::ptr_t ModuleImpl::getTopParameterFile() { |
| 79 | if (resources_mapped_files_.empty()) { return nullptr; } |
| 80 | return resources_mapped_files_.back(); |
| 81 | } |
| 82 | |
| 83 | Module::Module() { |
| 84 | impl_ = std::make_shared<ModuleImpl>(); |
no test coverage detected