From 68bb72dffb34570ccbc9630b2da482b351aafe31 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Wed, 27 Dec 2017 23:50:49 +0800 Subject: [PATCH] fix clang error --- 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 0825673546df8c..4e2141ecd2ebe3 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]],