r"""Get or set the eviction threshold in bytes. It can also be set to a string, whose formatting supports byte(B), kilobyte(KB), megabyte(MB) and gigabyte(GB) units. Note: When GPU memory usage exceeds this value, DTR will heuristically select and evict resident tenso
(mod)
| 23 | |
| 24 | @property |
| 25 | def eviction_threshold(mod): |
| 26 | r"""Get or set the eviction threshold in bytes. It can also be set to a string, |
| 27 | whose formatting supports byte(B), kilobyte(KB), megabyte(MB) and |
| 28 | gigabyte(GB) units. |
| 29 | |
| 30 | Note: |
| 31 | When GPU memory usage exceeds this value, DTR will heuristically select |
| 32 | and evict resident tensors until the amount of used memory falls below |
| 33 | this threshold. |
| 34 | |
| 35 | Examples: |
| 36 | .. code-block:: |
| 37 | |
| 38 | import megengine as mge |
| 39 | mge.dtr.eviction_threshold = "2GB" |
| 40 | """ |
| 41 | return _eviction_threshold |
| 42 | |
| 43 | |
| 44 | @eviction_threshold.setter |
nothing calls this directly
no test coverage detected