提交 314fef8e 编写于 作者: J jonyguo

fix: arg_opt is not defined

上级 79b117fe
...@@ -106,7 +106,7 @@ def run_general_distill(): ...@@ -106,7 +106,7 @@ def run_general_distill():
if args_opt.dataset_type == "tfrecord": if args_opt.dataset_type == "tfrecord":
dataset_type = DataType.TFRECORD dataset_type = DataType.TFRECORD
elif arg_opt.dataset_type == "mindrecord": elif args_opt.dataset_type == "mindrecord":
dataset_type = DataType.MINDRECORD dataset_type = DataType.MINDRECORD
else: else:
raise Exception("dataset format is not supported yet") raise Exception("dataset format is not supported yet")
......
...@@ -125,9 +125,9 @@ def run_predistill(): ...@@ -125,9 +125,9 @@ def run_predistill():
rank = 0 rank = 0
device_num = 1 device_num = 1
if arg_opt.dataset_type == "tfrecord": if args_opt.dataset_type == "tfrecord":
dataset_type = DataType.TFRECORD dataset_type = DataType.TFRECORD
elif arg_opt.dataset_type == "mindrecord": elif args_opt.dataset_type == "mindrecord":
dataset_type = DataType.MINDRECORD dataset_type = DataType.MINDRECORD
else: else:
raise Exception("dataset format is not supported yet") raise Exception("dataset format is not supported yet")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册