Skip to content

Commit af209a2

Browse files
committed
try again
1 parent d8a5c2e commit af209a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cuda_core/cuda/core/experimental/_memory.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,18 +309,18 @@ class Mempool(MemoryResource):
309309
"""
310310

311311
class _MembersNeededForFinalize:
312-
__slots__ = ("handle", "is_initialized")
312+
__slots__ = "handle"
313313

314314
def __init__(self, mr_obj, handle=None):
315315
self.handle = handle
316316
weakref.finalize(mr_obj, self.close)
317317

318318
def close(self):
319-
if self.is_initialized and self.handle:
319+
if self.handle:
320320
handle_return(driver.cuMemPoolDestroy(self.handle))
321321
self.handle = None
322322

323-
__slots__ = ("__weakref__", "_mnff")
323+
__slots__ = "_mnff"
324324

325325
def __init__(self):
326326
"""Direct instantiation is not supported.

0 commit comments

Comments
 (0)