JSX_TTS / torch /include /ATen /cuda /PinnedMemoryAllocator.h
UMMJ's picture
Upload 5875 files
9dd3461
raw
history blame contribute delete
257 Bytes
#pragma once
#include <c10/core/Allocator.h>
#include <ATen/cuda/CachingHostAllocator.h>
namespace at { namespace cuda {
inline TORCH_CUDA_CPP_API at::Allocator* getPinnedMemoryAllocator() {
return getCachingHostAllocator();
}
}} // namespace at::cuda