(self, device_index=None)
| 331 | return self.max_mem |
| 332 | |
| 333 | def total_memory(self, device_index=None): |
| 334 | import psutil |
| 335 | total = psutil.virtual_memory().total |
| 336 | cgroup = _cgroup_memory() |
| 337 | return total if cgroup is None else min(total, cgroup[0]) |
| 338 | |
| 339 | def available_memory(self, device_index=None): |
| 340 | import psutil |
nothing calls this directly
no test coverage detected