[CI/Build][CPU] Fix flaky CI image build failure and unexpected warnings (#44852)

Signed-off-by: jiang1.li <jiang1.li@intel.com>
This commit is contained in:
Li, Jiang
2026-06-08 11:10:06 +00:00
committed by GitHub
parent 5add018beb
commit 980796cd07
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -3537,10 +3537,11 @@ class CPUDNNLGEMMHandler:
self.handler_tensor: torch.Tensor | None = None
self.n = -1
self.k = -1
self.dtor = torch.ops._C.release_dnnl_matmul_handler
def __del__(self):
if self.handler_tensor is not None:
torch.ops._C.release_dnnl_matmul_handler(self.handler_tensor.item())
self.dtor(self.handler_tensor.item())
_supports_onednn = bool(hasattr(torch.ops._C, "create_onednn_mm_handler"))