File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
onnxruntime/core/providers/qnn/builder Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,12 @@ static const char* DlError() {
5656#endif
5757}
5858
59+ // Workaround for a missing comma in QNN_IR_GRAPH_CUSTOM_CONFIG_INIT.
60+ static QnnIrGraph_CustomConfig_t EmptyIrGraphConfig () {
61+ return {
62+ QNN_IR_GRAPH_CONFIG_OPTION_SERIALIZATION, {QNN_IR_GRAPH_SERIALIZATION_TYPE_FLAT_BUFFER, " " }};
63+ }
64+
5965class QnnIrConfig : public QnnSerializerConfig {
6066 public:
6167 QnnIrConfig (std::string backend_path, std::string dlc_dir)
@@ -91,7 +97,7 @@ class QnnIrConfig : public QnnSerializerConfig {
9197
9298 private:
9399 static QnnConfigsBuilder<QnnGraph_Config_t, QnnIrGraph_CustomConfig_t> MakeConfigsBuilder () {
94- return QnnConfigsBuilder<QnnGraph_Config_t, QnnIrGraph_CustomConfig_t>(QNN_GRAPH_CONFIG_INIT, QNN_IR_GRAPH_CUSTOM_CONFIG_INIT );
100+ return QnnConfigsBuilder<QnnGraph_Config_t, QnnIrGraph_CustomConfig_t>(QNN_GRAPH_CONFIG_INIT, EmptyIrGraphConfig () );
95101 }
96102
97103 std::filesystem::path dlc_dir_;
You can’t perform that action at this time.
0 commit comments