diff --git a/paddle/memory/memory_test.cc b/paddle/memory/memory_test.cc index fed7444798fe22478138803c1e8a8322993031c3..9fdcd03b1a6640b2924b3d5d339df6390e7402f5 100644 --- a/paddle/memory/memory_test.cc +++ b/paddle/memory/memory_test.cc @@ -33,7 +33,7 @@ TEST(BuddyAllocator, CPUAllocation) { TEST(BuddyAllocator, CPUMultAlloc) { paddle::platform::CPUPlace cpu; - std::vector ps; + std::vector ps; ps.reserve(8); for (auto size : {256, 1024, 4096, 16384, 65536, 262144, 1048576, 4194304}) {