From ba4322f4dda9e7fb91eab0245883c0b16c707ab4 Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Thu, 28 Dec 2017 10:12:36 +0800 Subject: [PATCH] fix clang error (#7084) --- paddle/framework/data_transform_test.cc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/paddle/framework/data_transform_test.cc b/paddle/framework/data_transform_test.cc index 0825673546..4e2141ecd2 100644 --- a/paddle/framework/data_transform_test.cc +++ b/paddle/framework/data_transform_test.cc @@ -31,18 +31,16 @@ using namespace platform; * 1111 -> FP64, GPUPlace, kNCHW, kMKLDNN */ -std::array kDataType = {proto::DataType::FP32, - proto::DataType::FP64}; +std::array kDataType = { + {proto::DataType::FP32, proto::DataType::FP64}}; -std::array kPlace = {CPUPlace(), CUDAPlace(0)}; +std::array kPlace = {{CPUPlace(), CUDAPlace(0)}}; std::array kDataLayout = { - DataLayout::kNHWC, DataLayout::kNCHW, -}; + {DataLayout::kNHWC, DataLayout::kNCHW}}; std::array kLibraryType = { - LibraryType::kPlain, LibraryType::kMKLDNN, -}; + {LibraryType::kPlain, LibraryType::kMKLDNN}}; OpKernelType GenFromBit(const std::vector bits) { return OpKernelType(kDataType[bits[0]], kPlace[bits[1]], kDataLayout[bits[2]], -- GitLab