warp_drive.training.utils.single_device_context package¶
Submodules¶
warp_drive.training.utils.single_device_context.device_context_numba module¶
warp_drive.training.utils.single_device_context.device_context_pycuda module¶
- class warp_drive.training.utils.single_device_context.device_context_pycuda.PyCUDASingleDeviceContext¶
Bases:
object
one single GPU hardware context available for both PyCuda and PyTorch
- property context¶
- init_context(device_id=None)¶
- warp_drive.training.utils.single_device_context.device_context_pycuda.clear_context(context)¶