[BugFix] Ensure appropriate guards in destructors (#25284)
Signed-off-by: Nick Hill <nhill@redhat.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
parent
8945b001db
commit
a25ade5d47
@@ -1183,7 +1183,7 @@ class AllReduceFusionPass(VllmInductorPass):
|
||||
self.end_and_log()
|
||||
|
||||
def __del__(self):
|
||||
if self.disabled:
|
||||
if getattr(self, "disabled", True):
|
||||
return
|
||||
if flashinfer_comm is not None:
|
||||
flashinfer_comm.trtllm_destroy_ipc_workspace_for_all_reduce(
|
||||
|
||||
Reference in New Issue
Block a user