torch.cuda.memory.caching_allocator_enable¶ torch.cuda.memory.caching_allocator_enable(value=True)[source][source]¶ 启用或禁用 CUDA 内存分配器。默认启用。