From ed095d40bf0156e2a1c4439570baa6fcaf13387e Mon Sep 17 00:00:00 2001 From: yejianwu Date: Sun, 8 Apr 2018 21:36:22 +0800 Subject: [PATCH] format code --- mace/kernels/opencl/out_of_range_check_test.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mace/kernels/opencl/out_of_range_check_test.cc b/mace/kernels/opencl/out_of_range_check_test.cc index 55d90196..16542a84 100644 --- a/mace/kernels/opencl/out_of_range_check_test.cc +++ b/mace/kernels/opencl/out_of_range_check_test.cc @@ -18,7 +18,7 @@ namespace { const bool BufferToImageOpImpl(Tensor *buffer, Tensor *image, - std::vector &image_shape) { + const std::vector &image_shape) { std::unique_ptr kernel_error; uint32_t gws[2] = {static_cast(image_shape[0]), static_cast(image_shape[1])}; @@ -35,7 +35,8 @@ const bool BufferToImageOpImpl(Tensor *buffer, built_options.emplace("-DNON_UNIFORM_WORK_GROUP"); } if (buffer->dtype() == image->dtype()) { - built_options.emplace("-DDATA_TYPE=" + DtToCLDt(DataTypeToEnum::value)); + built_options.emplace("-DDATA_TYPE=" + + DtToCLDt(DataTypeToEnum::value)); built_options.emplace("-DCMD_DATA_TYPE=" + DtToCLCMDDt(DataTypeToEnum::value)); } else { @@ -102,7 +103,8 @@ const bool BufferToImageOpImpl(Tensor *buffer, bool is_out_of_range = false; if (runtime->IsOutOfRangeCheckEnabled()) { kernel_error->Map(nullptr); - is_out_of_range = *(kernel_error->mutable_data()) == '1' ? true : false; + is_out_of_range = + *(kernel_error->mutable_data()) == '1' ? true : false; kernel_error->UnMap(); } return is_out_of_range; -- GitLab