We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8a5c2e commit af209a2Copy full SHA for af209a2
cuda_core/cuda/core/experimental/_memory.py
@@ -309,18 +309,18 @@ class Mempool(MemoryResource):
309
"""
310
311
class _MembersNeededForFinalize:
312
- __slots__ = ("handle", "is_initialized")
+ __slots__ = "handle"
313
314
def __init__(self, mr_obj, handle=None):
315
self.handle = handle
316
weakref.finalize(mr_obj, self.close)
317
318
def close(self):
319
- if self.is_initialized and self.handle:
+ if self.handle:
320
handle_return(driver.cuMemPoolDestroy(self.handle))
321
self.handle = None
322
323
- __slots__ = ("__weakref__", "_mnff")
+ __slots__ = "_mnff"
324
325
def __init__(self):
326
"""Direct instantiation is not supported.
0 commit comments