From 12d9e165dfacc512c489a3fd94f4a61c4aa58944 Mon Sep 17 00:00:00 2001 From: yejianwu Date: Fri, 4 May 2018 16:01:09 +0800 Subject: [PATCH] fix typo --- mace/kernels/opencl/cl/common.h | 4 ++-- mace/python/tools/converter.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mace/kernels/opencl/cl/common.h b/mace/kernels/opencl/cl/common.h index 604100d5..09731d77 100644 --- a/mace/kernels/opencl/cl/common.h +++ b/mace/kernels/opencl/cl/common.h @@ -32,8 +32,8 @@ #define CHECK_OUT_OF_RANGE_FOR_IMAGE2D(image, coord) #endif -#define READ_IMAGET(image, coord, value) \ - CMD_TYPE(read_image, CMD_DATA_TYPE)(image, coord, value) +#define READ_IMAGET(image, sampler, coord) \ + CMD_TYPE(read_image, CMD_DATA_TYPE)(image, sampler, coord) #define WRITE_IMAGET(image, coord, value) \ CHECK_OUT_OF_RANGE_FOR_IMAGE2D(image, coord) \ CMD_TYPE(write_image, CMD_DATA_TYPE)(image, coord, value); diff --git a/mace/python/tools/converter.py b/mace/python/tools/converter.py index 0f367da0..8b43ce7f 100644 --- a/mace/python/tools/converter.py +++ b/mace/python/tools/converter.py @@ -175,7 +175,7 @@ def parse_args(): parser.add_argument( "--platform", type=str, default="tensorflow", help="tensorflow/caffe") parser.add_argument( - "--embed_model_data", type=str2bool, default=True, help="input shape.") + "--embed_model_data", type=str2bool, default=True, help="embed model data.") return parser.parse_known_args() -- GitLab