提交 6c33224a 编写于 作者: L liuqi

Remove unused code.

上级 2b87801b
......@@ -25,7 +25,7 @@ def generate_cpp_source():
with open(binary_path, "rb") as f:
binary_array = np.fromfile(f, dtype=np.uint8)
print "Generate binary", binary_path
print "Generate binary from", binary_path
idx = 0
size, = struct.unpack("Q", binary_array[idx:idx+8])
idx += 8
......
......@@ -19,11 +19,10 @@ def generate_cpp_source():
binary_dirs = FLAGS.cl_binary_dirs.strip().split(",")
for binary_dir in binary_dirs:
binary_path = os.path.join(binary_dir, FLAGS.built_kernel_file_name)
print 'Before generate opencl code:', binary_path
if not os.path.exists(binary_path):
continue
print 'generate opencl code:', binary_path
print 'generate opencl code from', binary_path
with open(binary_path, "rb") as f:
binary_array = np.fromfile(f, dtype=np.uint8)
......
......@@ -156,7 +156,7 @@ def tuning_run(model_name,
stdout_buff = []
process_output = sh_commands.make_output_processor(stdout_buff)
p = sh.bash("tools/tuning_run.sh", target_soc, model_output_dir,
running_round, int(tuning), int(production_mode),
running_round, int(tuning),
restart_round, option_args, _out=process_output,
_bg=True, _err_to_out=True)
p.wait()
......@@ -188,7 +188,7 @@ def benchmark_model(target_soc, model_output_dir, option_args=''):
def run_model(model_name, target_runtime, target_abi, target_soc,
model_output_dir, running_round, restart_round, option_args):
tuning_run(model_name, target_runtime, target_abi, target_soc,
model_output_dir, running_round, False, False,
model_output_dir, running_round, False,
restart_round, option_args)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册