Contents Menu Expand Light mode Dark mode Auto light/dark mode
⚫ DeLU
⚫ DeLU

Usage & API

  • delu
    • to
    • cat
    • iter_batches
  • delu.cuda
    • free_memory
  • delu.nn
    • Lambda
    • NLinear
  • delu.random
    • seed
    • get_state
    • set_state
    • preserve_state
  • delu.tools
    • EarlyStopping
    • Timer

Other

  • Deprecated API
Back to top
Edit this page

free_memory#

delu.cuda.free_memory() → None[source]#

Free GPU memory = torch.cuda.synchronize + gc.collect + torch.cuda.empty_cache.

Note

There is a small chunk of GPU-memory (occupied by drivers) that is impossible to free. This is a property of torch, so this function inherits this property.

Usage

>>> delu.cuda.free_memory()
Next
delu.nn
Previous
delu.cuda
Copyright © 2023, Yura52
Made with Sphinx and @pradyunsg's Furo
On this page
  • free_memory
    • free_memory()