Revert "Remove conditional checks for python 3.12"

This reverts commit e5fb2eb2d1874d7652a280ff098e4f63d7b8f528.
This commit is contained in:
Matthias
2024-03-10 15:24:22 +01:00
parent 08cff9890f
commit 0cf46d8605
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ def patch_torch_initlogs(mocker) -> None:
module_name = 'torch'
mocked_module = types.ModuleType(module_name)
sys.modules[module_name] = mocked_module
else:
elif not is_py12():
mocker.patch("torch._logging._init_logs")