[Bug Fix] Fix the bug reported by RK3568 Runtime under the latest driver (#1311)

* 更新rkyolo runtime 在rk3568最新驱动下报错的问题

* 删除debug代码
This commit is contained in:
Zheng-Bicheng
2023-02-14 15:40:15 +08:00
committed by GitHub
parent 2dfda1db85
commit cd5a54cd75
3 changed files with 6 additions and 5 deletions

View File

@@ -67,6 +67,7 @@ bool RKNPU2Backend::GetSDKAndDeviceVersion() {
***************************************************************/
void RKNPU2Backend::BuildOption(const RKNPU2BackendOption& option) {
this->option_ = option;
// save cpu_name
this->option_.cpu_name = option.cpu_name;
@@ -123,7 +124,7 @@ bool RKNPU2Backend::InitFromRKNN(const std::string& model_file,
* @return bool
* @note Only support RK3588
***************************************************************/
bool RKNPU2Backend::SetCoreMask(rknpu2::CoreMask& core_mask) const {
bool RKNPU2Backend::SetCoreMask(const rknpu2::CoreMask& core_mask) {
int ret = rknn_set_core_mask(ctx, static_cast<rknn_core_mask>(core_mask));
if (ret != RKNN_SUCC) {
FDERROR << "rknn_set_core_mask fail! ret=" << ret << std::endl;