Skip to content

Commit 90d82d4

Browse files
iindykThe etils Authors
authored andcommitted
Expose SharedMemoryArrayMetadata in the public API.
PiperOrigin-RevId: 872666993
1 parent b8ce7d8 commit 90d82d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

etils/enp/array_spec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ def _is_pygrain(array: Array) -> bool:
184184
and 'grain.python' not in sys.modules
185185
):
186186
return False
187-
from grain._src.python import shared_memory_array # pylint: disable=g-import-not-at-top # pytype: disable=import-error
187+
import grain # pylint: disable=g-import-not-at-top # pytype: disable=import-error
188188

189-
return isinstance(array, shared_memory_array.SharedMemoryArrayMetadata)
189+
return isinstance(array, grain.multiprocessing.SharedMemoryArrayMetadata)
190190

191191

192192
def _is_orbax(array: Array) -> bool:

0 commit comments

Comments
 (0)