Source code for streaming.base.shared.array
# Copyright 2022-2024 MosaicML Streaming authors
# SPDX-License-Identifier: Apache-2.0
"""A numpy array of predetermined shape and dtype that lives in shared memory."""
from typing import Any, Union
import numpy as np
from numpy.typing import NDArray
from streaming.base.shared.memory import SharedMemory