mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-07 09:31:35 +08:00
[Bug Fix] Fix the bug reported by RK3568 Runtime under the latest driver (#1311)
* 更新rkyolo runtime 在rk3568最新驱动下报错的问题 * 删除debug代码
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user