Skip to content

Commit 4d8d929

Browse files
committed
fix claude comment
1 parent e472e4e commit 4d8d929

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

backends/qualcomm/export_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ def setup_common_args_and_variables():
691691
"-H",
692692
"--host",
693693
help="hostname where android device is connected.",
694-
default="localhost",
694+
default=None,
695695
type=str,
696696
)
697697

examples/qualcomm/util_scripts/cli.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def execute(args):
305305
)
306306
try:
307307
input_order_func = program.load_method(INPUT_ORDER)
308-
except:
308+
except Exception:
309309
logger.error(
310310
"Missing INPUT_ORDER in the .pte. The CLI execute command only supports .pte files generated by the CLI compile command, which preserves the input order."
311311
)
@@ -422,15 +422,8 @@ def post_process_etdump():
422422
json_path = f"{args.output_folder}/performance.json"
423423
inspector = Inspector(etdump_path=etdump_path)
424424
inspector.save_data_to_tsv(csv_path)
425-
# Create a list to hold the data
426-
data = []
427-
# Open the CSV file and read its contents
428425
with open(csv_path, encoding="utf-8") as csv_file:
429-
csv_reader = csv.DictReader(csv_file, delimiter="\t")
430-
# Convert each row into a dictionary and add it to the list
431-
for row in csv_reader:
432-
data.append(row)
433-
# Write the data to a JSON file
426+
data = list(csv.DictReader(csv_file, delimiter="\t"))
434427
with open(json_path, "w", encoding="utf-8") as json_file:
435428
json.dump(data, json_file, indent=4)
436429

0 commit comments

Comments
 (0)