Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
⚫ DeLU
⚫ DeLU

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
View this page
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 © 2024, Yura52
Made with Sphinx and @pradyunsg's Furo
On this page
  • free_memory
    • free_memory()