File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ def build_args_parser() -> argparse.ArgumentParser:
319
319
320
320
parser .add_argument (
321
321
"--soc_model" ,
322
- help = "SoC model of current device. e.g. 'SM8650' for Snapdragon 8 Gen 3." ,
322
+ help = "[QNN backend] SoC model of current device. e.g. 'SM8650' for Snapdragon 8 Gen 3." ,
323
323
type = str ,
324
324
required = False ,
325
325
default = "SM8650" ,
Original file line number Diff line number Diff line change @@ -230,19 +230,12 @@ def build_executorch_binary(
230
230
else :
231
231
edge_prog = capture_program (model , inputs )
232
232
233
- arch_table = {
234
- "SM8650" : QcomChipset .SM8650 ,
235
- "SM8550" : QcomChipset .SM8550 ,
236
- "SM8475" : QcomChipset .SM8475 ,
237
- "SM8450" : QcomChipset .SM8450 ,
238
- }
239
-
240
233
backend_options = generate_htp_compiler_spec (
241
234
use_fp16 = False if quant_dtype else True
242
235
)
243
236
qnn_partitioner = QnnPartitioner (
244
237
generate_qnn_executorch_compiler_spec (
245
- soc_model = arch_table [ soc_model ] ,
238
+ soc_model = getattr ( QcomChipset , soc_model ) ,
246
239
backend_options = backend_options ,
247
240
debug = False ,
248
241
saver = False ,
You can’t perform that action at this time.
0 commit comments