#pragma once #include #include namespace at { namespace cuda { inline TORCH_CUDA_CPP_API at::Allocator* getPinnedMemoryAllocator() { return getCachingHostAllocator(); } }} // namespace at::cuda