# Path: vmoe/checkpoints/types.py
# class Slice:
# class SliceNd(tuple):
# class SliceNdArray(np.ndarray):
# class ArrayChunks:
# class LazyArrayChunks:
# class IndexInfo:
#   def __init__(self, *args):
#   def slice(self) -> slice:
#   def tuple(self):
#   def start(self):
#   def step(self):
#   def stop(self):
#   def __eq__(self, other) -> bool:
#   def __lt__(self, other) -> bool:
#   def __hash__(self) -> int:
#   def __repr__(self) -> str:
#   def __new__(cls, *args) -> 'SliceNd':
#   def chunk(self, array: Array) -> Array:
#   def __new__(cls, ndarray: np.ndarray) -> 'SliceNdArray':
#   def create(cls,
#              slices: Sequence[SliceNd],
#              shape: Optional[Tuple[int, ...]] = None,
#              tile: Optional[Tuple[int, ...]] = None) -> 'SliceNdArray':
# def ddlist_field():
#   def add(self, index: int, chunk: Array, global_slice: SliceNd):
#   def iter_chunks(self, index: int):
#   def add(self, index: int, ndarray: Array, local_slice: SliceNd,
#           global_slice: SliceNd):
#   def iter_chunks(self, index: int):


import collections.abc
import numpy as np
from absl.testing import absltest
from vmoe.checkpoints import types
# Copyright 2021 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Tests for types."""


ArrayChunks = types.ArrayChunks
LazyArrayChunks = types.LazyArrayChunks
Slice = types.Slice
SliceNd = types.SliceNd

# Path: vmoe/checkpoints/types.py
# class Slice:
# class SliceNd(tuple):
# class SliceNdArray(np.ndarray):
# class ArrayChunks:
# class LazyArrayChunks:
# class IndexInfo:
#   def __init__(self, *args):
#   def slice(self) -> slice:
#   def tuple(self):
#   def start(self):
#   def step(self):
#   def stop(self):
#   def __eq__(self, other) -> bool:
#   def __lt__(self, other) -> bool:
#   def __hash__(self) -> int:
#   def __repr__(self) -> str:
#   def __new__(cls, *args) -> 'SliceNd':
#   def chunk(self, array: Array) -> Array:
#   def __new__(cls, ndarray: np.ndarray) -> 'SliceNdArray':
#   def create(cls,
#              slices: Sequence[SliceNd],
#              shape: Optional[Tuple[int, ...]] = None,
#              tile: Optional[Tuple[int, ...]] = None) -> 'SliceNdArray':
# def ddlist_field():
#   def add(self, index: int, chunk: Array, global_slice: SliceNd):
#   def iter_chunks(self, index: int):
#   def add(self, index: int, ndarray: Array, local_slice: SliceNd,
#           global_slice: SliceNd):
#   def iter_chunks(self, index: int):


# Path: vmoe/checkpoints/types_test.py
import collections.abc
import numpy as np
from absl.testing import absltest
from vmoe.checkpoints import types

# Copyright 2021 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Tests for types."""


ArrayChunks = types.ArrayChunks
LazyArrayChunks = types.LazyArrayChunks
Slice = types.Slice
SliceNd = types.SliceNd

SliceNdArray = types.SliceNdArray