diff --git a/paddle/framework/data_transform_test.cc b/paddle/framework/data_transform_test.cc index 0825673546df8cbea4a1a95b5ff2ced046bc4830..4e2141ecd2ebe35402a8a04613702a2f79f6a179 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]],