File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
backends/qualcomm/runtime/backends/irbackend/x86_64 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ using executorch::runtime::Error;
1919Error IrContext::GetContextBinary (
2020 QnnExecuTorchContextBinary& qnn_executorch_context_binary) {
2121 // read Dlc and write to buffer
22- auto dlc_name = GetGraphNames ()[0 ] + " .dlc" ;
22+ std::string dlc_name = GetGraphNames ()[0 ] + " .dlc" ;
2323 std::ifstream dlc_file (dlc_name, std::ios::binary | std::ios::ate);
2424 if (dlc_file.is_open ()) {
2525 std::streamsize size = dlc_file.tellg ();
@@ -34,7 +34,7 @@ Error IrContext::GetContextBinary(
3434 } else {
3535 QNN_EXECUTORCH_LOG_ERROR (
3636 " Unable to open dlc file %s for building QnnExecuTorchContextBinary" ,
37- dlc_name);
37+ dlc_name. c_str () );
3838 }
3939 return Error::Internal;
4040}
You can’t perform that action at this time.
0 commit comments