ribs.typing¶
Custom data types for pyribs.
-
ribs.typing.Int =
int | numpy.integer¶ General type for integers.
-
ribs.typing.Float =
float | numpy.floating¶ General type for floats.
- ribs.typing.BatchData¶
Represents data about a batch of solutions. The first dimension of each entry should be the batch dimension.
- ribs.typing.FieldDesc¶
Description of fields for archives.
alias of
dict[str,tuple[int|integer|tuple[int|integer, …],DTypeLike]]
-
ribs.typing.Array =
numpy.ndarray | torch.Tensor | cupy.ndarray¶ (For array API use only.) Represents an array compatible with pyribs.
-
ribs.typing.DType =
numpy.dtype | torch.dtype¶ (For array API use only.) Represents a dtype compatible with pyribs.
-
ribs.typing.Device =
str | int | torch.device | cupy.cuda.device.Device¶ (For array API use only.) Represents an array’s device.