|
|
@@ -1055,8 +1055,8 @@ Status ModelManager::GenSessionId(uint64_t &session_id) { |
|
|
|
Status ModelManager::LoadModelOffline(uint32_t &model_id, const ModelData &model, shared_ptr<ModelListener> listener, |
|
|
|
void *dev_ptr, size_t mem_size, void *weight_ptr, size_t weight_size) { |
|
|
|
GE_CHK_BOOL_RET_STATUS(model.key.empty() || mmAccess2(model.key.c_str(), M_F_OK) == EN_OK, |
|
|
|
ACL_ERROR_GE_PARAM_INVALID, |
|
|
|
"input key file path %s is invalid, %s", model.key.c_str(), strerror(errno)); |
|
|
|
ACL_ERROR_GE_PARAM_INVALID, "input key file path %s is invalid, %s", |
|
|
|
model.key.c_str(), strerror(errno)); |
|
|
|
GenModelId(&model_id); |
|
|
|
|
|
|
|
shared_ptr<DavinciModel> davinci_model = nullptr; |
|
|
|