Fix code check

pull/560/head
dongduo 4 years ago
parent 253f63b791
commit 608e9f09d1

@ -1086,10 +1086,7 @@ 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;

Loading…
Cancel
Save