Skip to content

v2.12.0

Choose a tag to compare

@Nkzono99 Nkzono99 released this 11 Apr 10:07
· 37 commits to main since this release

RemoteScope に明示的な open() / close() / clear() メソッドを追加し、with 文に頼らないリモート実行スタイルと、スコープを閉じずに行う手動 GC を可能にしたリリースです。

Highlights

  • RemoteScopeopen() / close() / clear() を追加。Jupyter でセルを跨いで scope を保持したり、長時間ループ中に clear() でワーカー側メモリを定期解放したりできるように (820bb56)
  • スコープはスタックとしてネスト可能で、open()/open() でも open() + with remote_scope() でも使える(新しい ref は常に最も内側の scope に登録される)(820bb56)

New Features

  • Add RemoteScope.open() / close() / clear() for explicit scope control, with backward-compatible with remote_scope(): semantics (820bb56)

Documentation

  • Document the three RemoteScope usage patterns (with / explicit open/close / clear), nesting semantics, and the footgun of reusing the same scope instance with both open() and with in distributed.{ja.md,md} (820bb56)

Full Changelog: v2.11.0...v2.12.0