提交 9931796c 编写于 作者: Y yejianwu

Merge branch 'master' of v9.git.n.xiaomi.com:deep-computing/mace

...@@ -158,7 +158,7 @@ void OpenCLRuntime::BuildProgram(const std::string &program_name, ...@@ -158,7 +158,7 @@ void OpenCLRuntime::BuildProgram(const std::string &program_name,
program, program,
&is_opencl_binary); &is_opencl_binary);
MACE_CHECK(found, "Program not found for ", MACE_CHECK(found, "Program not found for ",
is_opencl_binary ? "source: " : "binary: ", is_opencl_binary ? "binary: " : "source: ",
built_program_key); built_program_key);
// Build program // Build program
...@@ -174,7 +174,7 @@ void OpenCLRuntime::BuildProgram(const std::string &program_name, ...@@ -174,7 +174,7 @@ void OpenCLRuntime::BuildProgram(const std::string &program_name,
LOG(INFO) << "Program build log: " << build_log; LOG(INFO) << "Program build log: " << build_log;
} }
LOG(FATAL) << "Build program from " LOG(FATAL) << "Build program from "
<< (is_opencl_binary ? "source: " : "binary: ") << (is_opencl_binary ? "binary: " : "source: ")
<< built_program_key << built_program_key
<< " failed: " << ret; << " failed: " << ret;
} }
......
...@@ -34,7 +34,6 @@ def generate_cpp_source(): ...@@ -34,7 +34,6 @@ def generate_cpp_source():
key_size, = struct.unpack("i", binary_array[idx:idx+4]) key_size, = struct.unpack("i", binary_array[idx:idx+4])
idx += 4 idx += 4
key, = struct.unpack(str(key_size) + "s", binary_array[idx:idx+key_size]) key, = struct.unpack(str(key_size) + "s", binary_array[idx:idx+key_size])
key = ''.join([ "\\%03o" % ord(c) if not c.isalnum() else c for c in key])
idx += key_size idx += key_size
params_size, = struct.unpack("i", binary_array[idx:idx+4]) params_size, = struct.unpack("i", binary_array[idx:idx+4])
idx += 4 idx += 4
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册