forked from mindspore-Ecosystem/mindspore
fix: arg_opt is not defined
This commit is contained in:
parent
79b117fe02
commit
314fef8ecc
|
@ -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():
|
||||||
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")
|
||||||
|
|
Loading…
Reference in New Issue