提交 b0bd8b01 编写于 作者: L liuqi

Add Mace version to identify OpenCL cache for not use old cache.

上级 e1c7df94
...@@ -50,11 +50,11 @@ The Input/Output Tensor is stored in NHWC format: ...@@ -50,11 +50,11 @@ The Input/Output Tensor is stored in NHWC format:
* - Height-Major Input/Output * - Height-Major Input/Output
- NHWC - NHWC
- [W * C, N * (H+3)/4] - [W * C, N * (H+3)/4]
- Winograd Convolution format - WinogradTransform and MatMul output format
* - Width-Major Input/Output * - Width-Major Input/Output
- NHWC - NHWC
- [(W+3)/4 * C, N * H] - [(W+3)/4 * C, N * H]
- Winograd Convolution format - Unused now
Each Pixel of **Image** contains 4 elements. The below table list the Each Pixel of **Image** contains 4 elements. The below table list the
coordination relation between **Image** and **Buffer**. coordination relation between **Image** and **Buffer**.
......
...@@ -321,7 +321,8 @@ OpenCLRuntime::OpenCLRuntime(): ...@@ -321,7 +321,8 @@ OpenCLRuntime::OpenCLRuntime():
std::stringstream ss; std::stringstream ss;
ss << default_platform.getInfo<CL_PLATFORM_NAME>() ss << default_platform.getInfo<CL_PLATFORM_NAME>()
<< ", " << default_platform.getInfo<CL_PLATFORM_PROFILE>() << ", " << ", " << default_platform.getInfo<CL_PLATFORM_PROFILE>() << ", "
<< default_platform.getInfo<CL_PLATFORM_VERSION>(); << default_platform.getInfo<CL_PLATFORM_VERSION>() << ", "
<< MaceVersion();
platform_info_ = ss.str(); platform_info_ = ss.str();
VLOG(1) << "Using platform: " << platform_info_; VLOG(1) << "Using platform: " << platform_info_;
......
...@@ -27,8 +27,6 @@ namespace {{tag}} { ...@@ -27,8 +27,6 @@ namespace {{tag}} {
const unsigned char *LoadModelData(const std::string &model_data_file); const unsigned char *LoadModelData(const std::string &model_data_file);
void UnloadModelData(const unsigned char *model_data);
const std::shared_ptr<NetDef> CreateNet(); const std::shared_ptr<NetDef> CreateNet();
const std::string ModelName(); const std::string ModelName();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册