| 44 | namespace lite { |
| 45 | #ifndef LITE_ON_TINY_PUBLISH |
| 46 | void LoadLoDTensor(model_parser::pb::LoDTensorDeserializer *loader, |
| 47 | model_parser::ByteReader *reader, |
| 48 | Variable *var) { |
| 49 | auto *tensor = var->GetMutable<lite::Tensor>(); |
| 50 | CHECK(tensor) << "Can not get allocation of the tensor."; |
| 51 | CHECK(loader) << "The input argument loader is nullptr."; |
| 52 | CHECK(var) << "The input argument var is nullptr."; |
| 53 | loader->ForwardRead(tensor, reader); |
| 54 | } |
| 55 | |
| 56 | std::unique_ptr<framework::proto::ProgramDesc> LoadProgram( |
| 57 | const std::string &path, const lite_api::CxxModelBuffer &model_buffer) { |
no test coverage detected