#pragma once #include #include namespace at::xpu { inline TORCH_XPU_API at::HostAllocator* getPinnedMemoryAllocator() { return at::getHostAllocator(at::kXPU); } } // namespace at::xpu