A realization of CachingAllocatorWithBuckets.
参考
CachingAllocatorWithBucketsBase
MemoryType -- A Memory class implementation such as CpuMemory and CudaMemory.