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