memory
Functions
Garbage collection Torch (CUDA) memory. |
|
|
|
|
|
|
|
|
|
Detach all tensors in in_dict. |
Utilities related to memory.
- lightning.pytorch.utilities.memory.garbage_collection_cuda()
Garbage collection Torch (CUDA) memory.
- Return type:
- lightning.pytorch.utilities.memory.recursive_detach(in_dict, to_cpu=False)
Detach all tensors in in_dict.
May operate recursively if some of the values in in_dict are dictionaries which contain instances of Tensor. Other types in in_dict are not affected by this utility function.
Was this page helpful?
Thanks for the feedback.