Skip to content

Commit f7dbd2f

Browse files
committed
Fixup json load
1 parent 158a672 commit f7dbd2f

File tree

1 file changed

+3
-4
lines changed
  • models/turbine_models/custom_models/torchbench

1 file changed

+3
-4
lines changed

models/turbine_models/custom_models/torchbench/export.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def run_main(model_id, args, tb_dir, tb_args):
420420
if args.compile_to in ["torch", "mlir"]:
421421
safe_name = utils.create_safe_name(
422422
model_id,
423-
f"_{static_dim}_{precision}",
423+
f"_{static_dim}_{args.precision}",
424424
)
425425
with open(f"{safe_name}.mlir", "w+") as f:
426426
f.write(mod_str)
@@ -447,9 +447,8 @@ def run_main(model_id, args, tb_dir, tb_args):
447447

448448
torchbench_models_dict = json.load(args.model_list_json)
449449
for list in args.model_lists:
450-
torchbench_models_dict = json.load(list)
451-
with open(args.models_json, "r") as f:
452-
torchbench_models_dict = json.load(file)
450+
with open(list, "r") as f:
451+
torchbench_models_dict = json.load(f)
453452

454453
tb_dir = setup_torchbench_cwd()
455454
if args.model_id.lower() == "all":

0 commit comments

Comments
 (0)