File tree Expand file tree Collapse file tree
backends/qualcomm/runtime Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,7 +84,10 @@ QnnManager::QnnManager(
8484 " Enable shared buffer: %d" , options->shared_buffer ());
8585 QNN_EXECUTORCH_LOG_INFO (
8686 " The number of op packages: %d" ,
87- options_->op_package_options ()->op_package_infos ()->size ());
87+ options_->op_package_options () &&
88+ options_->op_package_options ()->op_package_infos ()
89+ ? options_->op_package_options ()->op_package_infos ()->size ()
90+ : 0 );
8891 }
8992
9093 backend_params_ptr_ = std::make_unique<BackendConfigParameters>();
Original file line number Diff line number Diff line change @@ -94,7 +94,8 @@ Error QnnBackend::Configure(
9494 return Error::Internal;
9595 }
9696
97- if (op_package_options->op_package_infos ()->size () > 0 ) {
97+ if (op_package_options && op_package_options->op_package_infos () &&
98+ op_package_options->op_package_infos ()->size () > 0 ) {
9899 BackendRegisterOpPackage (op_package_options->op_package_infos ());
99100 }
100101
You can’t perform that action at this time.
0 commit comments