Rename device_manager.py to utils/hardware/device_manager.py
Browse files
device_manager.py → utils/hardware/device_manager.py
RENAMED
|
@@ -8,7 +8,7 @@
|
|
| 8 |
import platform
|
| 9 |
import subprocess
|
| 10 |
from typing import Optional, Dict, Any, List
|
| 11 |
-
from exceptions import DeviceError
|
| 12 |
|
| 13 |
logger = logging.getLogger(__name__)
|
| 14 |
|
|
@@ -412,4 +412,4 @@ def cleanup_device_memory(self):
|
|
| 412 |
gc.collect()
|
| 413 |
logger.debug("CPU memory cleanup completed")
|
| 414 |
except Exception as e:
|
| 415 |
-
logger.warning(f"CPU memory cleanup failed: {e}")
|
|
|
|
| 8 |
import platform
|
| 9 |
import subprocess
|
| 10 |
from typing import Optional, Dict, Any, List
|
| 11 |
+
from core.exceptions import DeviceError # Updated import path
|
| 12 |
|
| 13 |
logger = logging.getLogger(__name__)
|
| 14 |
|
|
|
|
| 412 |
gc.collect()
|
| 413 |
logger.debug("CPU memory cleanup completed")
|
| 414 |
except Exception as e:
|
| 415 |
+
logger.warning(f"CPU memory cleanup failed: {e}")
|