This commit is contained in:
Matthew Honnibal 2024-09-09 20:56:01 +02:00
parent a019315534
commit 4cc3ebe74e
1 changed files with 1 additions and 1 deletions

View File

@ -2093,7 +2093,7 @@ class Language:
tok2vec.remove_listener(listener, pipe_name) tok2vec.remove_listener(listener, pipe_name)
@contextmanager @contextmanager
def memory_zone(self, mem: Optional[Pool]=None) -> Iterator[Pool]: def memory_zone(self, mem: Optional[Pool] = None) -> Iterator[Pool]:
"""Begin a block where all resources allocated during the block will """Begin a block where all resources allocated during the block will
be freed at the end of it. If a resources was created within the be freed at the end of it. If a resources was created within the
memory zone block, accessing it outside the block is invalid. memory zone block, accessing it outside the block is invalid.