Skip to content

Commit b1dc6f8

Browse files
authored
Store values instead of comparing in ma_engine_cvi.cpp (#96)
1 parent c7ed52a commit b1dc6f8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sscma/core/engine/ma_engine_cvi.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ma_err_t EngineCVI::load(const char* model_path) {
5353
model = nullptr;
5454
}
5555

56-
_ret == CVI_NN_RegisterModel(model_path, &model);
56+
_ret = CVI_NN_RegisterModel(model_path, &model);
5757

5858
if (_ret != CVI_RC_SUCCESS) {
5959
return MA_EINVAL;
@@ -82,7 +82,7 @@ ma_err_t EngineCVI::load(const void* model_data, size_t model_size) {
8282
model = nullptr;
8383
}
8484

85-
_ret == CVI_NN_RegisterModelFromBuffer(static_cast<const int8_t*>(model_data), model_size, &model);
85+
_ret = CVI_NN_RegisterModelFromBuffer(static_cast<const int8_t*>(model_data), model_size, &model);
8686

8787
if (_ret != CVI_RC_SUCCESS) {
8888
return MA_EINVAL;
@@ -242,4 +242,4 @@ ma_err_t EngineCVI::setInput(int32_t index, const ma_tensor_t& tensor) {
242242

243243
} // namespace ma::engine
244244

245-
#endif
245+
#endif

0 commit comments

Comments
 (0)